Loading...
Searching...
No Matches

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).
 
#define CONFIG_GNRC_NETIF_PKTQ_POOL_SIZE   (16U)
 Packet queue pool size for all network interfaces.
 
#define CONFIG_GNRC_NETIF_PKTQ_TIMER_US   (5000U)
 Time in microseconds for when to try send a queued packet at the latest.
 
#define GNRC_NETIF_RPL_ADDR   (0)
 Number of multicast addresses needed for RPL.
 
#define GNRC_NETIF_IPV6_RTR_ADDR   (0)
 Number of multicast addresses needed for a IPv6 router.
 
#define CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF
 Maximum number of unicast and anycast addresses per interface.
 
#define GNRC_NETIF_IPV6_GROUPS_NUMOF
 Maximum number of multicast groups per interface.
 
#define GNRC_NETIF_L2ADDR_MAXLEN   (CONFIG_GNRC_IPV6_NIB_L2ADDR_MAX_LEN)
 Maximum length of the link-layer address.
 
#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.
 

Macro Definition Documentation

◆ CONFIG_GNRC_NETIF_DEFAULT_HL

#define CONFIG_GNRC_NETIF_DEFAULT_HL   (64U)

default hop limit

Definition at line 163 of file conf.h.

◆ CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF

#define CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF
Value:
(2 + \
#define DHCPV6_CLIENT_ADDRS_NUMOF
Number of addresses needed for using DHCPv6 IA_NA.
Definition client.h:80

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) + any additional address via configuration protocol (e.g. DHCPv6 leases).

Definition at line 116 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 174 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 55 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 66 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 dequeuing 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 79 of file conf.h.

◆ GNRC_NETIF_IPV6_GROUPS_NUMOF

#define GNRC_NETIF_IPV6_GROUPS_NUMOF
Value:
#define CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF
Maximum number of unicast and anycast addresses per interface.
Definition conf.h:116
#define GNRC_NETIF_IPV6_RTR_ADDR
Number of multicast addresses needed for a IPv6 router.
Definition conf.h:102
#define GNRC_NETIF_RPL_ADDR
Number of multicast addresses needed for RPL.
Definition conf.h:90

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 127 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 102 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 158 of file conf.h.

◆ GNRC_NETIF_PRIO

#define GNRC_NETIF_PRIO   (THREAD_PRIORITY_MAIN - 5)

Default priority for network interface threads.

Definition at line 39 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 90 of file conf.h.