Loading...
Searching...
No Matches

Buffer for asynchronous 6LoWPAN fragmentation. More...

Detailed Description

Buffer for asynchronous 6LoWPAN fragmentation.

Files

file  fb.h
 Fragmentation buffer definitions.
 

Data Structures

struct  gnrc_sixlowpan_frag_fb_t
 6LoWPAN fragmentation buffer entry. More...
 

Macros

#define GNRC_SIXLOWPAN_FRAG_FB_SND_MSG   (0x0225)
 Message type for passing one 6LoWPAN fragment down the network stack.
 

Functions

void gnrc_sixlowpan_frag_fb_reset (void)
 Reset fragmentation buffer.
 
gnrc_sixlowpan_frag_fb_tgnrc_sixlowpan_frag_fb_get (void)
 Allocates a fragmentation buffer entry.
 
gnrc_sixlowpan_frag_fb_tgnrc_sixlowpan_frag_fb_get_by_tag (uint16_t tag)
 Get an existing fragmentation buffer entry by a given tag.
 
uint16_t gnrc_sixlowpan_frag_fb_next_tag (void)
 Generate a new datagram tag for sending.
 
static bool gnrc_sixlowpan_frag_fb_send (gnrc_sixlowpan_frag_fb_t *fbuf)
 Sends a message to pass a further fragment down the network stack.
 

Macro Definition Documentation

◆ GNRC_SIXLOWPAN_FRAG_FB_SND_MSG

#define GNRC_SIXLOWPAN_FRAG_FB_SND_MSG   (0x0225)

Message type for passing one 6LoWPAN fragment down the network stack.

Definition at line 42 of file fb.h.

Function Documentation

◆ gnrc_sixlowpan_frag_fb_get()

gnrc_sixlowpan_frag_fb_t * gnrc_sixlowpan_frag_fb_get ( void  )

Allocates a fragmentation buffer entry.

Returns
A fragmentation buffer entry if available
NULL, otherwise

◆ gnrc_sixlowpan_frag_fb_get_by_tag()

gnrc_sixlowpan_frag_fb_t * gnrc_sixlowpan_frag_fb_get_by_tag ( uint16_t  tag)

Get an existing fragmentation buffer entry by a given tag.

Parameters
[in]tagTag to search for.
Returns
a fragmentation buffer entry if one with tag exists.
NULL, if no fragmentation buffer entry can be found.

◆ gnrc_sixlowpan_frag_fb_next_tag()

uint16_t gnrc_sixlowpan_frag_fb_next_tag ( void  )

Generate a new datagram tag for sending.

Returns
A new datagram tag.

◆ gnrc_sixlowpan_frag_fb_reset()

void gnrc_sixlowpan_frag_fb_reset ( void  )

Reset fragmentation buffer.

Note
Only available with test

◆ gnrc_sixlowpan_frag_fb_send()

static bool gnrc_sixlowpan_frag_fb_send ( gnrc_sixlowpan_frag_fb_t fbuf)
inlinestatic

Sends a message to pass a further fragment down the network stack.

See also
GNRC_SIXLOWPAN_MSG_FRAG_SND
Parameters
[in]fbufA fragmentation buffer entry ]
Returns
true, when the message was sent
false when sending the message failed.

Definition at line 125 of file fb.h.