TCPIP_IPV6_TxPacketAllocate Function

C

IPV6_PACKET * TCPIP_IPV6_TxPacketAllocate(
    TCPIP_NET_HANDLE netH, 
    IPV6_PACKET_ACK_FNC ackFnc, 
    void* ackParam
);

Description

This function dynamically allocates a packet for transmitting IP protocol data and sets the packet IPv6 protocol for a TX packet.

Preconditions

TCPIP_IPV6_Initialize() should be called. TCPIP_IPV6_InterfaceIsReady should be true.

Parameters

ParametersDescription
netHInterface of the outgoing packet.
ackFncFunction to be called when IP is done with the TX packet (finished transmitting).
ackParamParameter to be used for this callback. This has meaning only for the caller of the TCPIP_IPV6_TxPacketAllocate().

Returns

  • Pointer to the allocated packet - On success.

  • NULL - On failure.

Remarks

None.