1.2.5.2.40 TCPIP_MAC_PKT_FreeF Type

C

typedef void (* TCPIP_MAC_PKT_FreeF)(TCPIP_MAC_PACKET* pPkt);

Description

Packet Allocation Function: typedef void (*TCPIP_MAC_PKT_FreeF)(TCPIP_MAC_PACKET* pPkt);

This function is used by the MAC to free a previously allocated TCPIP_MAC_PACKET packet.

Parameters

ParametersDescription
pPktPointer to a previously allocated packet.

Returns

None.

Remarks

The function will free a previously allocated packet. However packets or segments marked with TCPIP_MAC_PKT_FLAG_STATIC/TCPIP_MAC_SEG_FLAG_STATIC are not freed.

Also note that this function does not free explicitly the external segment payload. A payload that was created contiguously when the segment was created will be automatically freed by this function.

The debug version adds the module identifier.