6LoWPAN Fragmentation definitions More...

Detailed Description

#include <inttypes.h>
#include <stdbool.h>
#include "byteorder.h"
#include "kernel_types.h"
#include "net/gnrc/pkt.h"
#include "net/gnrc/netif/hdr.h"
#include "net/ieee802154.h"
#include "net/sixlowpan.h"
+ Include dependency graph for frag.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gnrc_sixlowpan_rbuf_t
 An entry in the 6LoWPAN reassembly buffer. More...
 
struct  gnrc_sixlowpan_msg_frag_t
 Definition of 6LoWPAN fragmentation type. More...
 

Macros

Message types
#define GNRC_SIXLOWPAN_MSG_FRAG_SND   (0x0225)
 Message type for passing one 6LoWPAN fragment down the network stack.
 
#define GNRC_SIXLOWPAN_MSG_FRAG_GC_RBUF   (0x0226)
 Message type for triggering garbage collection reassembly buffer.
 

Functions

gnrc_sixlowpan_msg_frag_tgnrc_sixlowpan_msg_frag_get (void)
 Allocates a gnrc_sixlowpan_msg_frag_t object. More...
 
void gnrc_sixlowpan_frag_send (gnrc_pktsnip_t *pkt, void *ctx, unsigned page)
 Sends a packet fragmented. More...
 
void gnrc_sixlowpan_frag_recv (gnrc_pktsnip_t *pkt, void *ctx, unsigned page)
 Handles a packet containing a fragment header. More...
 
void gnrc_sixlowpan_frag_rbuf_gc (void)
 Garbage collect reassembly buffer.
 
void gnrc_sixlowpan_frag_rbuf_remove (gnrc_sixlowpan_rbuf_t *rbuf)
 Removes an entry from the reassembly buffer. More...
 
void gnrc_sixlowpan_frag_rbuf_dispatch_when_complete (gnrc_sixlowpan_rbuf_t *rbuf, gnrc_netif_hdr_t *netif)
 Checks if a reassembly buffer entry is complete and dispatches it to the next layer if that is the case. More...