Skip to content

Commit d701079

Browse files
evpopovEmil Popovtony-josi-awskar-rahul-aws
authored
Fixes reception of multicast custom Ethernet frames (#1177)
* 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]>
1 parent bb11bb9 commit d701079

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/FreeRTOS_IP.c

+6-5
Original file line numberDiff line numberDiff line change
@@ -1510,12 +1510,13 @@ eFrameProcessingResult_t eConsiderFrameForProcessing( const uint8_t * const pucE
15101510
else
15111511
{
15121512
/* The frame is an unsupported Ethernet II type */
1513-
#if ipconfigIS_DISABLED( ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES )
1514-
/* Processing custom ethernet frames is disabled - release it. */
1515-
break;
1516-
#else
1517-
/* Processing custom ethernet frames is enabled - Continue filter checks. */
1513+
#if ipconfigIS_ENABLED( ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES )
1514+
1515+
/* Processing custom Ethernet frames is enabled. No need for any further testing.
1516+
* Accept the frame whether it's a unicast, multicast, or broadcast. */
1517+
eReturn = eProcessBuffer;
15181518
#endif
1519+
break;
15191520
}
15201521

15211522
/* Third, filter based on destination mac address. */

0 commit comments

Comments
 (0)