Data Structures | |
struct | FRAG6Q |
The structure describes the Fragment Reassembly Queue. More... | |
Functions | |
void | IPv6FragMsg (uint Msg) |
int | IPv6ParseFragHdr (PBM_Pkt *pPkt, IPV6HDR *ptr_ipv6hdr) |
int | IPv6TxFragPacket (PBM_Pkt *pPkt, NETIF_DEVICE *ptr_net_device, HANDLE ptr_lli6) |
void IPv6FragMsg | ( | uint | Msg | ) |
Description
IPv6 Fragmentation & Reassembly module's event handling function.
This is for *internal* NDK Stack Usage.
[in] | Msg | The message event which needs to be handled. |
None. |
int IPv6ParseFragHdr | ( | PBM_Pkt * | pPkt, | |
IPV6HDR * | ptr_ipv6hdr | |||
) |
Description
The function handles all packets with fragmentation header.
[in] | pPkt | Pointer to the entire IPv6 Packet. |
[in] | ptr_ipv6hdr | Pointer to the IPv6 Header. |
-1 | - Error in processing the packet. Packet has been cleaned up. | |
1 | - Packet has been successfully processed by fragmentation module. Its been absorbed by this module for reassembly. Ignore this packet. This packet is now a responsibility of the fragmentation layer for further processing. |
int IPv6TxFragPacket | ( | PBM_Pkt * | pPkt, | |
NETIF_DEVICE * | ptr_net_device, | |||
HANDLE | ptr_lli6 | |||
) |
Description
This function is called by IPv6TxPacket when it detects that the packet cannot be transmitted as a whole using a specified tx device. This function handles the fragmentation and transmit of such a packet.
This is for *internal* NDK Stack Usage.
[in] | pPkt | Pointer to the IPv6 packet which needs to be transmitted |
[in] | ptr_net_device | Pointer to the device on which the fragment packets need to be transmitted |
[in] | ptr_lli6 | Handle to the LLI6 Entry |
Success | - 0 | |
Error | - <0 |