From ba931bc2dc31dd36e68c1e1f1da35c6f61a82b6d Mon Sep 17 00:00:00 2001 From: tony-josi-aws Date: Tue, 6 May 2025 11:58:24 +0530 Subject: [PATCH] Fix ARP lookups for gateway address when destination is outside of subnet --- source/FreeRTOS_UDP_IPv4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/FreeRTOS_UDP_IPv4.c b/source/FreeRTOS_UDP_IPv4.c index 2fceed8a95..d5fde02476 100644 --- a/source/FreeRTOS_UDP_IPv4.c +++ b/source/FreeRTOS_UDP_IPv4.c @@ -273,8 +273,7 @@ void vProcessGeneratedUDPPacket_IPv4( NetworkBufferDescriptor_t * const pxNetwor /* 'ulIPAddress' might have become the address of the Gateway. * Find the route again. */ - - pxNetworkBuffer->pxEndPoint = FreeRTOS_FindEndPointOnNetMask( pxNetworkBuffer->xIPAddress.ulIP_IPv4 ); + pxNetworkBuffer->pxEndPoint = FreeRTOS_FindEndPointOnNetMask( ulIPAddress ); if( pxNetworkBuffer->pxEndPoint == NULL ) {