Go to the documentation of this file.
20 #ifndef NET_GNRC_IPV6_EXT_FRAG_H
21 #define NET_GNRC_IPV6_EXT_FRAG_H
38 #define GNRC_IPV6_EXT_FRAG_RBUF_GC (0xfe00U)
46 #define GNRC_IPV6_EXT_FRAG_CONTINUE (0xfe01U)
53 #define GNRC_IPV6_EXT_FRAG_SEND (0xfe02U)
static void gnrc_pktbuf_release(gnrc_pktsnip_t *pkt)
Decreases gnrc_pktsnip_t::users of pkt atomically and removes it if it reaches 0 and reports GNRC_NET...
IPv6 header type and helper function definitions.
uint16_t offset
current fragmentation offset
void gnrc_ipv6_ext_frag_init(void)
Initializes IPv6 fragmentation and reassembly.
gnrc_ipv6_ext_frag_stats_t * gnrc_ipv6_ext_frag_stats(void)
Get the current statistics on reassembly and fragmentation.
Fragmentation send buffer type.
static void gnrc_ipv6_ext_frag_rbuf_del(gnrc_ipv6_ext_frag_rbuf_t *rbuf)
Delete a reassembly buffer entry (and release its gnrc_ipv6_ext_frag_rbuf_t::pkt)
gnrc_pktsnip_t * gnrc_ipv6_ext_frag_reass(gnrc_pktsnip_t *pkt)
Reassemble fragmented IPv6 packet.
clist_node_t limits
The limits of the fragments in the reassembled packet.
uint16_t path_mtu
path MTU to destination of gnrc_ipv6_ext_frag_send_t::pkt
uint32_t arrival
arrival time of last received fragment
uint8_t last
received last fragment
gnrc_pktsnip_t * pkt
the (partly) reassembled packet
gnrc_pktsnip_t * pkt
the IPv6 packet to fragment
ipv6_hdr_t * ipv6
the IPv6 header of gnrc_ipv6_ext_frag_rbuf_t::pkt
unsigned fragments
total fragments of reassembled fragments
void gnrc_ipv6_ext_frag_send_pkt(gnrc_pktsnip_t *pkt, unsigned path_mtu)
Send an IPv6 packet fragmented.
void gnrc_ipv6_ext_frag_send(gnrc_ipv6_ext_frag_send_t *snd_buf)
(Continue to) fragment packet already in fragmentation send buffer
uint16_t start
the start (= offset) of the fragment
uint32_t id
the identification for the fragment header
uint32_t id
the identification from the fragment headers
General definitions for network packets and their helper functions.
struct gnrc_ipv6_ext_frag_limits gnrc_ipv6_ext_frag_limits_t
Data type to describe limits of a single fragment in the reassembly buffer.
unsigned frag_full
counts the number of events that there where no gnrc_sixlowpan_frag_fb_t available
Interface definition for the global network buffer. Network devices and layers can allocate space for...
unsigned datagrams
reassembled datagrams
gnrc_pktsnip_t * per_frag
per fragment headers
struct gnrc_ipv6_ext_frag_limits * next
limits of next fragment
Data type to describe limits of a single fragment in the reassembly buffer.
uint16_t pkt_len
length of gnrc_ipv6_ext_frag_rbuf_t::pkt
Statistics on reassembly and reassembly.
Data type to represent an IPv6 packet header.
gnrc_ipv6_ext_frag_rbuf_t * gnrc_ipv6_ext_frag_rbuf_get(ipv6_hdr_t *ipv6, uint32_t id)
Get a reassembly buffer by the identifying parameters.
unsigned rbuf_full
counts the number of events where the reassembly buffer is full
Type to represent parts (either headers or payload) of a packet, called snips.
void gnrc_ipv6_ext_frag_rbuf_gc(void)
Garbage-collect reassembly buffer.
void gnrc_ipv6_ext_frag_rbuf_free(gnrc_ipv6_ext_frag_rbuf_t *rbuf)
Frees a reassembly buffer entry (but does not release its gnrc_ipv6_ext_frag_rbuf_t::pkt)
uint16_t end
the exclusive end (= offset + length) of the fragment
A reassembly buffer entry.