Detailed Description

Files

file  conf.h
 Configuration macros for Network interface API.
 

Macros

#define GNRC_NETIF_SINGLE
 Single interface optimizations. More...
 
#define GNRC_NETIF_PRIO   (THREAD_PRIORITY_MAIN - 5)
 Default priority for network interface threads.
 
#define CONFIG_GNRC_NETIF_MSG_QUEUE_SIZE_EXP   (4U)
 Default message queue size for network interface threads (as exponent of 2^n). More...
 
#define GNRC_NETIF_RPL_ADDR   (0)
 Number of multicast addresses needed for RPL. More...
 
#define GNRC_NETIF_IPV6_RTR_ADDR   (0)
 Number of multicast addresses needed for a IPv6 router. More...
 
#define CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF   (2)
 Maximum number of unicast and anycast addresses per interface. More...
 
#define GNRC_NETIF_IPV6_GROUPS_NUMOF
 Maximum number of multicast groups per interface. More...
 
#define GNRC_NETIF_L2ADDR_MAXLEN   (CONFIG_GNRC_IPV6_NIB_L2ADDR_MAX_LEN)
 Maximum length of the link-layer address. More...
 
#define CONFIG_GNRC_NETIF_DEFAULT_HL   (64U)
 default hop limit
 
#define CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US   (0U)
 Minimum wait time in microseconds after a send operation. More...
 

Macro Definition Documentation

◆ CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF

#define CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF   (2)

Maximum number of unicast and anycast addresses per interface.

Note
If you change this, please make sure that GNRC_NETIF_IPV6_GROUPS_NUMOF is also large enough to fit the addresses' solicited nodes multicast addresses.

Default: 2 (1 link-local + 1 global address)

Definition at line 102 of file conf.h.

◆ CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US

#define CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US   (0U)

Minimum wait time in microseconds after a send operation.

Warning
This feature is experimental!

This is purely meant as a debugging feature to slow down a radios sending.

Definition at line 157 of file conf.h.

◆ CONFIG_GNRC_NETIF_MSG_QUEUE_SIZE_EXP

#define CONFIG_GNRC_NETIF_MSG_QUEUE_SIZE_EXP   (4U)

Default message queue size for network interface threads (as exponent of 2^n).

As the queue size ALWAYS needs to be power of two, this option represents the exponent of 2^n, which will be used as the size of the queue.

Attention
This has influence on the used stack memory of the thread, so the thread's stack size might need to be adapted if this is changed.

Definition at line 66 of file conf.h.

◆ GNRC_NETIF_IPV6_GROUPS_NUMOF

#define GNRC_NETIF_IPV6_GROUPS_NUMOF
Value:
GNRC_NETIF_RPL_ADDR + \
GNRC_NETIF_IPV6_RTR_ADDR + 1)
#define CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF
Maximum number of unicast and anycast addresses per interface.
Definition: conf.h:102

Maximum number of multicast groups per interface.

Default: 3 (all-nodes + solicited-nodes of link-local and global unicast address) + GNRC_NETIF_RPL_ADDR + GNRC_NETIF_IPV6_RTR_ADDR

Definition at line 112 of file conf.h.

◆ GNRC_NETIF_IPV6_RTR_ADDR

#define GNRC_NETIF_IPV6_RTR_ADDR   (0)

Number of multicast addresses needed for a IPv6 router.

Note
Used for calculation of GNRC_NETIF_IPV6_GROUPS_NUMOF

Definition at line 89 of file conf.h.

◆ GNRC_NETIF_L2ADDR_MAXLEN

#define GNRC_NETIF_L2ADDR_MAXLEN   (CONFIG_GNRC_IPV6_NIB_L2ADDR_MAX_LEN)

Maximum length of the link-layer address.

The value for the maximum length of a link-layer address is dependent on the netdev adapters compiled in:

Note
Implementers note: From longest to shortest extend, if new link-layer address types are included

Definition at line 141 of file conf.h.

◆ GNRC_NETIF_RPL_ADDR

#define GNRC_NETIF_RPL_ADDR   (0)

Number of multicast addresses needed for RPL.

Note
Used for calculation of GNRC_NETIF_IPV6_GROUPS_NUMOF

Definition at line 77 of file conf.h.

◆ GNRC_NETIF_SINGLE

#define GNRC_NETIF_SINGLE

Single interface optimizations.

Define to 1 to allow GNRC optimizations when only one interface is available.

Note
This MUST NOT be enabled if there's more than one interface.

Definition at line 43 of file conf.h.