Skip to content

Commit

Permalink
Fixes reception of multicast custom Ethernet frames (FreeRTOS#1177)
Browse files Browse the repository at this point in the history
* Fixes a bug that was preventing multicast custom Ethernet frames to be parsed when ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES was disabled.

* Fix formatting

---------

Co-authored-by: Emil Popov <[email protected]>
Co-authored-by: tony-josi-aws <[email protected]>
Co-authored-by: Rahul Kar <[email protected]>
  • Loading branch information
4 people authored Aug 7, 2024
1 parent bb11bb9 commit d701079
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/FreeRTOS_IP.c
Original file line number Diff line number Diff line change
Expand Up @@ -1510,12 +1510,13 @@ eFrameProcessingResult_t eConsiderFrameForProcessing( const uint8_t * const pucE
else
{
/* The frame is an unsupported Ethernet II type */
#if ipconfigIS_DISABLED( ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES )
/* Processing custom ethernet frames is disabled - release it. */
break;
#else
/* Processing custom ethernet frames is enabled - Continue filter checks. */
#if ipconfigIS_ENABLED( ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES )

/* Processing custom Ethernet frames is enabled. No need for any further testing.
* Accept the frame whether it's a unicast, multicast, or broadcast. */
eReturn = eProcessBuffer;
#endif
break;
}

/* Third, filter based on destination mac address. */
Expand Down

0 comments on commit d701079

Please sign in to comment.