Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Feb 10, 2024
1 parent a62084b commit ac59d9b
Showing 1 changed file with 40 additions and 35 deletions.
75 changes: 40 additions & 35 deletions source/FreeRTOS_IP.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,51 +1490,56 @@ eFrameProcessingResult_t eConsiderFrameForProcessing( const uint8_t * const pucE
break;
}

if( eReturn == eReleaseBuffer )
{
/* No use to do more testing. */
break;
}

/* Examine the destination MAC from the Ethernet header to see if it matches
* that of an end point managed by FreeRTOS+TCP. */
pxEndPoint = FreeRTOS_MatchingEndpoint( NULL, pucEthernetBuffer );
if( pxEndPoint != NULL )
{
break;
}
else
{
#if ipconfigIS_ENABLED( ipconfigUSE_DNS )
#if ipconfigIS_ENABLED( ipconfigUSE_LLMNR )
#if ipconfigIS_ENABLED( ipconfigUSE_IPv4 )
if( memcmp( xLLMNR_MacAddress.ucBytes, pxEthernetHeader->xDestinationAddress.ucBytes, sizeof( MACAddress_t ) ) == 0 )
{
/* The packet is a request for LLMNR - process it. */
break;
}
#endif
#if ipconfigIS_ENABLED( ipconfigUSE_IPv6 )
if( memcmp( xLLMNR_MacAddressIPv6.ucBytes, pxEthernetHeader->xDestinationAddress.ucBytes, sizeof( MACAddress_t ) ) == 0 )
{
/* The packet is a request for LLMNR - process it. */
break;
}
#endif

#if ipconfigIS_ENABLED( ipconfigUSE_DNS )
#if ipconfigIS_ENABLED( ipconfigUSE_LLMNR )
#if ipconfigIS_ENABLED( ipconfigUSE_IPv4 )
if( memcmp( xLLMNR_MacAddress.ucBytes, pxEthernetHeader->xDestinationAddress.ucBytes, sizeof( MACAddress_t ) ) == 0 )
{
/* The packet is a request for LLMNR - process it. */
break;
}
#endif
#if ipconfigIS_ENABLED( ipconfigUSE_MDNS )
#if ipconfigIS_ENABLED( ipconfigUSE_IPv4 )
if( memcmp( xMDNS_MacAddress.ucBytes, pxEthernetHeader->xDestinationAddress.ucBytes, sizeof( MACAddress_t ) ) == 0 )
{
/* The packet is a request for MDNS - process it. */
break;
}
#endif
#if ipconfigIS_ENABLED( ipconfigUSE_IPv6 )
if( memcmp( xMDNS_MACAddressIPv6.ucBytes, pxEthernetHeader->xDestinationAddress.ucBytes, sizeof( MACAddress_t ) ) == 0 )
{
/* The packet is a request for MDNS - process it. */
break;
}
#endif
#if ipconfigIS_ENABLED( ipconfigUSE_IPv6 )
if( memcmp( xLLMNR_MacAddressIPv6.ucBytes, pxEthernetHeader->xDestinationAddress.ucBytes, sizeof( MACAddress_t ) ) == 0 )
{
/* The packet is a request for LLMNR - process it. */
break;
}
#endif
#endif
eReturn = eReleaseBuffer;
}
#if ipconfigIS_ENABLED( ipconfigUSE_MDNS )
#if ipconfigIS_ENABLED( ipconfigUSE_IPv4 )
if( memcmp( xMDNS_MacAddress.ucBytes, pxEthernetHeader->xDestinationAddress.ucBytes, sizeof( MACAddress_t ) ) == 0 )
{
/* The packet is a request for MDNS - process it. */
break;
}
#endif
#if ipconfigIS_ENABLED( ipconfigUSE_IPv6 )
if( memcmp( xMDNS_MACAddressIPv6.ucBytes, pxEthernetHeader->xDestinationAddress.ucBytes, sizeof( MACAddress_t ) ) == 0 )
{
/* The packet is a request for MDNS - process it. */
break;
}
#endif
#endif
#endif

eReturn = eReleaseBuffer;
} while( ipFALSE_BOOL );

return eReturn;
Expand Down

0 comments on commit ac59d9b

Please sign in to comment.