Rtos API example
ip6_frag.h File Reference
IPv6 fragmentation and reassembly. More...
Go to the source code of this file.
Data Structures | |
struct | ip6_reassdata |
IPv6 reassembly helper struct. More... | |
struct | pbuf_custom_ref |
A custom pbuf that holds a reference to another pbuf, which is freed when this custom pbuf is freed. More... | |
Functions | |
struct pbuf * | ip6_reass (struct pbuf *p) |
Reassembles incoming IPv6 fragments into an IPv6 datagram. | |
err_t | ip6_frag (struct pbuf *p, struct netif *netif, const ip6_addr_t *dest) |
Fragment an IPv6 datagram if too large for the netif or path MTU. |
Detailed Description
IPv6 fragmentation and reassembly.
Definition in file ip6_frag.h.
Function Documentation
err_t ip6_frag | ( | struct pbuf * | p, |
struct netif * | netif, | ||
const ip6_addr_t * | dest | ||
) |
Fragment an IPv6 datagram if too large for the netif or path MTU.
Chop the datagram in MTU sized chunks and send them in order by pointing PBUF_REFs into p
- Parameters:
-
p ipv6 packet to send netif the netif on which to send dest destination ipv6 address to which to send
- Returns:
- ERR_OK if sent successfully, err_t otherwise
Definition at line 660 of file lwip_ip6_frag.c.
Reassembles incoming IPv6 fragments into an IPv6 datagram.
- Parameters:
-
p points to the IPv6 Fragment Header
- Returns:
- NULL if reassembly is incomplete, pbuf pointing to IPv6 Header if reassembly is complete
Definition at line 259 of file lwip_ip6_frag.c.
Generated on Sun Jul 17 2022 08:25:34 by 1.7.2