From 227095baa09d6016fc4a75960ba31fd3eeeae5c7 Mon Sep 17 00:00:00 2001 From: Emil Popov Date: Tue, 6 Aug 2024 10:35:32 -0400 Subject: [PATCH 1/2] Fixes a bug that was preventing multicast custom Ethernet frames to be parsed when ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES was disabled. --- source/FreeRTOS_IP.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/FreeRTOS_IP.c b/source/FreeRTOS_IP.c index 607bc8fdc..8850e6496 100644 --- a/source/FreeRTOS_IP.c +++ b/source/FreeRTOS_IP.c @@ -1510,12 +1510,12 @@ 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. */ From 805d57b8907effd7829253f8250b5e5d69d8b11d Mon Sep 17 00:00:00 2001 From: tony-josi-aws Date: Wed, 7 Aug 2024 10:24:50 +0530 Subject: [PATCH 2/2] Fix formatting --- source/FreeRTOS_IP.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/FreeRTOS_IP.c b/source/FreeRTOS_IP.c index 8850e6496..348b1e4d2 100644 --- a/source/FreeRTOS_IP.c +++ b/source/FreeRTOS_IP.c @@ -1511,6 +1511,7 @@ eFrameProcessingResult_t eConsiderFrameForProcessing( const uint8_t * const pucE { /* The frame is an unsupported Ethernet II type */ #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;