Detailed Description

Files

file  conf.h
 Configuration macros for Network interface API.
 

Macros

#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 CONFIG_GNRC_NETIF_PKTQ_POOL_SIZE   (16U)
 Packet queue pool size for all network interfaces. More...
 
#define CONFIG_GNRC_NETIF_PKTQ_TIMER_US   (5000U)
 Time in microseconds for when to try send a queued packet at the latest. 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 114 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 169 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 54 of file conf.h.

◆ CONFIG_GNRC_NETIF_PKTQ_POOL_SIZE

#define CONFIG_GNRC_NETIF_PKTQ_POOL_SIZE   (16U)

Packet queue pool size for all network interfaces.

Note
With 6LoWPAN Fragmentation the queue should fit at least all fragments of the minimum MTU.
See also
Send queue for @ref net_gnrc_netif

Definition at line 65 of file conf.h.

◆ CONFIG_GNRC_NETIF_PKTQ_TIMER_US

#define CONFIG_GNRC_NETIF_PKTQ_TIMER_US   (5000U)

Time in microseconds for when to try send a queued packet at the latest.

Set to -1 to deactivate dequeing by timer. For this it has to be ensured that none of the notifications by the driver are missed!

See also
Send queue for @ref net_gnrc_netif

Definition at line 78 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)

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 124 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 101 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 153 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 89 of file conf.h.

CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF
#define CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF
Maximum number of unicast and anycast addresses per interface.
Definition: conf.h:114