Skip to content

Commit

Permalink
Removes prvFindEndPointOnNetMask( NetworkBufferDescriptor_t * pxNetwo…
Browse files Browse the repository at this point in the history
…rkBuffer ) which is no longer needed.
  • Loading branch information
Emil Popov committed Dec 18, 2023
1 parent b673a2c commit 4377102
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions source/FreeRTOS_DNS_Parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,47 +47,6 @@

#if ( ipconfigUSE_DNS != 0 )

/** @brief The list of all callback structures. */


#if ( ( ipconfigUSE_NBNS == 1 ) || ( ipconfigUSE_LLMNR == 1 ) || ( ipconfigUSE_MDNS == 1 ) )

/**
* @brief Find the best matching end-point given a reply that was received.
* @param[in] pxNetworkBuffer The Ethernet packet that was received.
* @return An end-point.
*/
static NetworkEndPoint_t * prvFindEndPointOnNetMask( NetworkBufferDescriptor_t * pxNetworkBuffer )
{
NetworkEndPoint_t * pxEndPoint = NULL;

#if ( ipconfigUSE_IPv6 != 0 )
IPPacket_IPv6_t * xIPPacket_IPv6 = ( ( IPPacket_IPv6_t * ) pxNetworkBuffer->pucEthernetBuffer );

if( xIPPacket_IPv6->xEthernetHeader.usFrameType == ipIPv6_FRAME_TYPE )
{
pxEndPoint = FreeRTOS_FindEndPointOnNetMask_IPv6( &xIPPacket_IPv6->xIPHeader.xSourceAddress );
}
else
#endif /* ( ipconfigUSE_IPv6 != 0 ) */

#if ( ipconfigUSE_IPv4 != 0 )
{
IPPacket_t * xIPPacket = ( ( IPPacket_t * ) pxNetworkBuffer->pucEthernetBuffer );

pxEndPoint = FreeRTOS_FindEndPointOnNetMask( xIPPacket->xIPHeader.ulSourceIPAddress, 6 );
}
#endif /* ( ipconfigUSE_IPv4 != 0 ) */

if( pxEndPoint != NULL )
{
pxNetworkBuffer->pxEndPoint = pxEndPoint;
}

return pxEndPoint;
}
#endif /* ( ( ipconfigUSE_NBNS == 1 ) || ( ipconfigUSE_LLMNR == 1 ) || ( ipconfigUSE_MDNS == 1 ) ) */
/*-----------------------------------------------------------*/

/**
* @brief Read the Name field out of a DNS response packet.
Expand Down

0 comments on commit 4377102

Please sign in to comment.