@@ -437,8 +437,8 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
437437
438438 /* Check if the destination MAC address is a broadcast MAC address. */
439439 if ( memcmp ( xBroadcastMACAddress .ucBytes ,
440- pxIPPacket -> xEthernetHeader .xDestinationAddress .ucBytes ,
441- sizeof ( MACAddress_t ) ) == 0 )
440+ pxIPPacket -> xEthernetHeader .xDestinationAddress .ucBytes ,
441+ sizeof ( MACAddress_t ) ) == 0 )
442442 {
443443 if ( ulDestinationIPAddress != FREERTOS_INADDR_BROADCAST )
444444 {
@@ -451,6 +451,7 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
451451 /* Accept valid broadcast packet. */
452452 }
453453 }
454+
454455 /* RFC 2131: https://datatracker.ietf.org/doc/html/rfc2131#autoid-8
455456 * The TCP/IP software SHOULD accept and
456457 * forward to the IP layer any IP packets delivered to the client's
@@ -459,8 +460,8 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
459460 * clients that cannot accept hardware unicast datagrams before the
460461 * TCP/IP software is configured. */
461462 else if ( ( memcmp ( pxEndPoint -> xMACAddress .ucBytes ,
462- pxIPPacket -> xEthernetHeader .xDestinationAddress .ucBytes ,
463- sizeof ( MACAddress_t ) ) != 0 ) )
463+ pxIPPacket -> xEthernetHeader .xDestinationAddress .ucBytes ,
464+ sizeof ( MACAddress_t ) ) != 0 ) )
464465 {
465466 /* The endpoint is not up, and the destination MAC address of the
466467 * packet is not matching the endpoint's MAC address nor broadcast
0 commit comments