From d70107967a14094994aecef68889b26e196ee6e0 Mon Sep 17 00:00:00 2001 From: Emil Popov Date: Wed, 7 Aug 2024 07:17:34 -0400 Subject: [PATCH] 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 Co-authored-by: tony-josi-aws Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> --- source/FreeRTOS_IP.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/FreeRTOS_IP.c b/source/FreeRTOS_IP.c index 607bc8fdc..348b1e4d2 100644 --- a/source/FreeRTOS_IP.c +++ b/source/FreeRTOS_IP.c @@ -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. */