File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments