Configuration macros for Network interface API. More...

Detailed Description

Configuration macros for Network interface API.

Author
Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de

Definition in file netif/conf.h.

#include "net/ieee802154.h"
#include "net/ethernet/hdr.h"
#include "net/gnrc/ipv6/nib/conf.h"
#include "thread.h"
+ Include dependency graph for netif/conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GNRC_NETIF_NUMOF   (1)
 Maximum number of network interfaces. More...
 
#define GNRC_NETIF_PRIO   (THREAD_PRIORITY_MAIN - 5)
 Default priority for network interface threads.
 
#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 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   (GNRC_IPV6_NIB_L2ADDR_MAX_LEN)
 Maximum length of the link-layer address. More...
 
#define GNRC_NETIF_DEFAULT_HL   (64U)
 default hop limit
 

Macro Definition Documentation

◆ GNRC_NETIF_IPV6_ADDRS_NUMOF

#define 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 80 of file netif/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 GNRC_NETIF_IPV6_ADDRS_NUMOF
Maximum number of unicast and anycast addresses per interface.
Definition: netif/conf.h:80

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 90 of file netif/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 67 of file netif/conf.h.

◆ GNRC_NETIF_L2ADDR_MAXLEN

#define GNRC_NETIF_L2ADDR_MAXLEN   (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 119 of file netif/conf.h.

◆ GNRC_NETIF_NUMOF

#define GNRC_NETIF_NUMOF   (1)

Maximum number of network interfaces.

Note
Intentionally not calling it GNRC_NETIF_NUMOF to not require rewrites throughout the stack.

Definition at line 37 of file netif/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 55 of file netif/conf.h.