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)
void gnrc_ipv6_ext_frag_send(gnrc_ipv6_ext_frag_send_t *snd_buf)
(Continue to) fragment packet already in fragmentation send buffer
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.
void gnrc_ipv6_ext_frag_send_pkt(gnrc_pktsnip_t *pkt, unsigned path_mtu)
Send an IPv6 packet fragmented.
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)
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.
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.
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.
void gnrc_ipv6_ext_frag_rbuf_gc(void)
Garbage-collect reassembly buffer.
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...
General definitions for network packets and their helper functions.
IPv6 header type and helper function definitions.
Interface definition for the global network buffer.
Data type to describe limits of a single fragment in the reassembly buffer.
uint16_t end
the exclusive end (= offset + length) of the fragment
struct gnrc_ipv6_ext_frag_limits * next
limits of next fragment
uint16_t start
the start (= offset) of the fragment
A reassembly buffer entry.
gnrc_pktsnip_t * pkt
the (partly) reassembled packet
uint32_t id
the identification from the fragment headers
ipv6_hdr_t * ipv6
the IPv6 header of gnrc_ipv6_ext_frag_rbuf_t::pkt
clist_node_t limits
The limits of the fragments in the reassembled packet.
uint32_t arrival
arrival time of last received fragment
uint16_t pkt_len
length of gnrc_ipv6_ext_frag_rbuf_t::pkt
uint8_t last
received last fragment
Fragmentation send buffer type.
gnrc_pktsnip_t * pkt
the IPv6 packet to fragment
gnrc_pktsnip_t * per_frag
per fragment headers
uint16_t path_mtu
path MTU to destination of gnrc_ipv6_ext_frag_send_t::pkt
uint32_t id
the identification for the fragment header
uint16_t offset
current fragmentation offset
Statistics on reassembly and reassembly.
unsigned rbuf_full
counts the number of events where the reassembly buffer is full
unsigned fragments
total fragments of reassembled fragments
unsigned datagrams
reassembled datagrams
unsigned frag_full
counts the number of events that there where no gnrc_sixlowpan_frag_fb_t available
Type to represent parts (either headers or payload) of a packet, called snips.
Data type to represent an IPv6 packet header.