Skip to content

Commit ba931bc

Browse files
committed
Fix ARP lookups for gateway address when destination is outside of subnet
1 parent 2b7ab23 commit ba931bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/FreeRTOS_UDP_IPv4.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,7 @@ void vProcessGeneratedUDPPacket_IPv4( NetworkBufferDescriptor_t * const pxNetwor
273273

274274
/* 'ulIPAddress' might have become the address of the Gateway.
275275
* Find the route again. */
276-
277-
pxNetworkBuffer->pxEndPoint = FreeRTOS_FindEndPointOnNetMask( pxNetworkBuffer->xIPAddress.ulIP_IPv4 );
276+
pxNetworkBuffer->pxEndPoint = FreeRTOS_FindEndPointOnNetMask( ulIPAddress );
278277

279278
if( pxNetworkBuffer->pxEndPoint == NULL )
280279
{

0 commit comments

Comments
 (0)