6LoWPAN Fragmentation headers and functionality More...

Detailed Description

6LoWPAN Fragmentation headers and functionality

See also
RFC 4944, section 5.3

Modules

 6LoWPAN fragmentation buffer
 Buffer for asynchronous 6LoWPAN fragmentation.
 
 6LoWPAN reassembly buffer
 6LoWPAN reassembly buffer
 
 Fragment size hint
 Provides a hint for smaller fragment sizes than the link-layer PDU for the next fragment to sent.
 
 Virtual reassembly buffer
 Virtual reassembly buffer.
 

Files

file  frag.h
 6LoWPAN Fragmentation definitions
 

Data Structures

struct  gnrc_sixlowpan_frag_stats_t
 Statistics on fragmentation and reassembly. More...
 

Functions

gnrc_sixlowpan_frag_stats_tgnrc_sixlowpan_frag_stats_get (void)
 Get the current statistics on fragmentation and reassembly. 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...
 

Function Documentation

◆ gnrc_sixlowpan_frag_recv()

void gnrc_sixlowpan_frag_recv ( gnrc_pktsnip_t pkt,
void *  ctx,
unsigned  page 
)

Handles a packet containing a fragment header.

Parameters
[in]pktThe packet to handle
[in]ctxContext for the packet. May be NULL.
[in]pageCurrent 6Lo dispatch parsing page.

◆ gnrc_sixlowpan_frag_send()

void gnrc_sixlowpan_frag_send ( gnrc_pktsnip_t pkt,
void *  ctx,
unsigned  page 
)

Sends a packet fragmented.

Precondition
ctx != NULL
gnrc_sixlowpan_frag_fb_t::pkt of ctx is equal to pkt or pkt == NULL.
Parameters
[in]pktA packet. May be NULL.
[in]ctxA fragmentation buffer entry. Expected to be of type gnrc_sixlowpan_frag_fb_t, with gnrc_sixlowpan_frag_fb_t set to pkt. Must not be NULL.
[in]pageCurrent 6Lo dispatch parsing page.

◆ gnrc_sixlowpan_frag_stats_get()

gnrc_sixlowpan_frag_stats_t* gnrc_sixlowpan_frag_stats_get ( void  )

Get the current statistics on fragmentation and reassembly.

Returns
The current statistics on fragmentation and reassembly