netif/conf.h¶
Configuration macros for Network interface API.
-
GNRC_NETIF_NUMOF
¶ Maximum number of network interfaces.
1
(1)
Note
Intentionally not calling it
GNRC_NETIF_NUMOF
to not require rewrites throughout the stack.
-
GNRC_NETIF_PRIO
¶ Default priority for network interface threads.
1
(THREAD_PRIORITY_MAIN - 5)
-
GNRC_NETIF_RPL_ADDR
¶ Number of multicast addresses needed for RPL.
1
(0)
Note
Used for calculation of
netif/conf.h::GNRC_NETIF_IPV6_GROUPS_NUMOF
-
GNRC_NETIF_IPV6_RTR_ADDR
¶ Number of multicast addresses needed for a IPv6 router.
1
(0)
Note
Used for calculation of
netif/conf.h::GNRC_NETIF_IPV6_GROUPS_NUMOF
-
GNRC_NETIF_IPV6_ADDRS_NUMOF
¶ Maximum number of unicast and anycast addresses per interface.
1
(2)
Note
If you change this, please make sure that
netif/conf.h::GNRC_NETIF_IPV6_GROUPS_NUMOF
is also large enough to fit the addresses’ solicited nodes multicast addresses.
-
GNRC_NETIF_IPV6_GROUPS_NUMOF
¶ Maximum number of multicast groups per interface.
1 2 3
(GNRC_NETIF_IPV6_ADDRS_NUMOF + \ GNRC_NETIF_RPL_ADDR + \ GNRC_NETIF_IPV6_RTR_ADDR + 1)
Default: 3 (all-nodes + solicited-nodes of link-local and global unicast address) +
netif/conf.h::GNRC_NETIF_RPL_ADDR
+netif/conf.h::GNRC_NETIF_IPV6_RTR_ADDR
-
GNRC_NETIF_L2ADDR_MAXLEN
¶ Maximum length of the link-layer address.
1
(GNRC_IPV6_NIB_L2ADDR_MAX_LEN)
The value for the maximum length of a link-layer address is dependent on the netdev adapters compiled in:
- Setting it via
CFLAGS
has the most precedence. - The default is 8.
- 1, if only CC1100/CC1101 radio driver devices are compiled in.
ethernet/hdr.h::ETHERNET_ADDR_LEN
, if additionally (or only) ethernet devices are compiled in.sys/include/net/ieee802154.h::IEEE802154_LONG_ADDRESS_LEN
, if additionally (or only) IEEE802.15.4 devices are compiled in.
Note
Implementers note: From longest to shortest extend, if new link-layer address types are included
- Setting it via
-
GNRC_NETIF_DEFAULT_HL
¶ default hop limit
1
(64U)