Rtos API example

Embed: (wiki syntax)

« Back to documentation index

ip6_frag.h File Reference

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 pbufip6_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:
pipv6 packet to send
netifthe netif on which to send
destdestination 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.

struct pbuf* ip6_reass ( struct pbuf p ) [read]

Reassembles incoming IPv6 fragments into an IPv6 datagram.

Parameters:
ppoints 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.