Detailed Description

Files

file  config.h
 Configuration macros for 6LoWPAN.
 

Macros

#define GNRC_SIXLOWPAN_STACK_SIZE   (THREAD_STACKSIZE_DEFAULT)
 Default stack size to use for the 6LoWPAN thread.
 
#define GNRC_SIXLOWPAN_PRIO   (THREAD_PRIORITY_MAIN - 4)
 Default priority for the 6LoWPAN thread.
 
#define GNRC_SIXLOWPAN_MSG_QUEUE_SIZE   (8U)
 Default message queue size to use for the 6LoWPAN thread.
 
#define GNRC_SIXLOWPAN_MSG_FRAG_SIZE   (1U)
 Number of datagrams that can be fragmented simultaneously. More...
 
#define GNRC_SIXLOWPAN_FRAG_RBUF_SIZE   (4U)
 Size of the reassembly buffer. More...
 
#define GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US   (3U * US_PER_SEC)
 Timeout for reassembly buffer entries in microseconds. More...
 
#define GNRC_SIXLOWPAN_FRAG_RBUF_AGGRESSIVE_OVERRIDE   (1)
 Aggressively override reassembly buffer when full. More...
 
#define GNRC_SIXLOWPAN_ND_AR_LTIME   (15U)
 Registration lifetime in minutes for the address registration option. More...
 
#define GNRC_SIXLOWPAN_FRAG_VRB_SIZE   (16U)
 Size of the virtual reassembly buffer. More...
 
#define GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US   (GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US)
 Timeout for a VRB entry in microseconds. More...
 

Macro Definition Documentation

◆ GNRC_SIXLOWPAN_FRAG_RBUF_AGGRESSIVE_OVERRIDE

#define GNRC_SIXLOWPAN_FRAG_RBUF_AGGRESSIVE_OVERRIDE   (1)

Aggressively override reassembly buffer when full.

Note
Only applicable with gnrc_sixlowpan_frag module

When set to a non-zero value this will cause the reassembly buffer to override the oldest entry no matter what. When set to zero only the oldest entry that is older than GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US will be overwritten (they will still timeout normally if reassembly buffer is not full).

Definition at line 97 of file config.h.

◆ GNRC_SIXLOWPAN_FRAG_RBUF_SIZE

#define GNRC_SIXLOWPAN_FRAG_RBUF_SIZE   (4U)

Size of the reassembly buffer.

Note
Only applicable with gnrc_sixlowpan_frag module

Definition at line 71 of file config.h.

◆ GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US

#define GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US   (3U * US_PER_SEC)

Timeout for reassembly buffer entries in microseconds.

Note
Only applicable with gnrc_sixlowpan_frag module

Definition at line 81 of file config.h.

◆ GNRC_SIXLOWPAN_FRAG_VRB_SIZE

#define GNRC_SIXLOWPAN_FRAG_VRB_SIZE   (16U)

Size of the virtual reassembly buffer.

See also
https://tools.ietf.org/html/draft-ietf-lwig-6lowpan-virtual-reassembly-01
Note
Only applicable with gnrc_sixlowpan_frag_vrb module, but has also a direct influence on the number of available gnrc_sixlowpan_rbuf_int_t entries (even when gnrc_sixlowpan_frag_vrb is not compiled in).

Definition at line 131 of file config.h.

◆ GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US

#define GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US   (GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_US)

Timeout for a VRB entry in microseconds.

See also
https://tools.ietf.org/html/draft-ietf-lwig-6lowpan-virtual-reassembly-01
Note
Only applicable with gnrc_sixlowpan_frag_vrb module.

Definition at line 146 of file config.h.

◆ GNRC_SIXLOWPAN_MSG_FRAG_SIZE

#define GNRC_SIXLOWPAN_MSG_FRAG_SIZE   (1U)

Number of datagrams that can be fragmented simultaneously.

This determines the number of gnrc_sixlowpan_msg_frag_t instances available.

Note
Only applicable with gnrc_sixlowpan_frag module

Definition at line 61 of file config.h.

◆ GNRC_SIXLOWPAN_ND_AR_LTIME

#define GNRC_SIXLOWPAN_ND_AR_LTIME   (15U)

Registration lifetime in minutes for the address registration option.

This value should be adapted to the devices power-lifecycle so that it is greater than the time the device spends sleeping.

See also
RFC 6775, section 5.8.1
Note
Only applicable with gnrc_ipv6_nib and gnrc_sixlowpan_nd modules. The first provides automatic sending of neighbor solicitations, the latter provides capabilities to build the address registration option as a gnrc_pktsnip_t

Definition at line 115 of file config.h.