Skip to content

Commit 49fd388

Browse files
committed
Update comments
1 parent 2f1acfc commit 49fd388

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/FreeRTOS_IPv4.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
435435
{
436436
/* Endpoint is down */
437437

438+
/* Check if the destination MAC address is a broadcast MAC address. */
438439
if( memcmp( xBroadcastMACAddress.ucBytes,
439440
pxIPPacket->xEthernetHeader.xDestinationAddress.ucBytes,
440441
sizeof( MACAddress_t ) ) == 0 )
@@ -447,7 +448,7 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
447448
}
448449
else
449450
{
450-
/* Accept valid broadcast packet */
451+
/* Accept valid broadcast packet. */
451452
}
452453
}
453454
/* RFC 2131: https://datatracker.ietf.org/doc/html/rfc2131#autoid-8
@@ -462,8 +463,8 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
462463
sizeof( MACAddress_t ) ) != 0 ) )
463464
{
464465
/* The endpoint is not up, and the destination MAC address of the
465-
* packet is not matching the endpoint's MAC address. Drop the
466-
* packet. */
466+
* packet is not matching the endpoint's MAC address nor broadcast
467+
* MAC address. Drop the packet. */
467468
eReturn = eReleaseBuffer;
468469
}
469470
else

0 commit comments

Comments
 (0)