mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #3771 from OlegHahm/ipv6_netif_more_addresses_for_router
ipv6: netif: compute maximum addresses
This commit is contained in:
commit
2d231611c7
@ -41,12 +41,20 @@ extern "C" {
|
|||||||
*
|
*
|
||||||
* @brief Number of IPv6 addresses per interface.
|
* @brief Number of IPv6 addresses per interface.
|
||||||
*/
|
*/
|
||||||
#ifndef GNRC_IPV6_NETIF_ADDR_NUMOF
|
#ifdef MODULE_GNRC_RPL
|
||||||
#ifdef MODULE_GNRC_IPV6_ROUTER
|
/* RPL needs all-RPL-nodes multicast address */
|
||||||
#define GNRC_IPV6_NETIF_ADDR_NUMOF (7) /* router needs all-routers multicast address */
|
# define RPL_ADDR (1)
|
||||||
#else
|
#else
|
||||||
#define GNRC_IPV6_NETIF_ADDR_NUMOF (6)
|
# define RPL_ADDR (0)
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef MODULE_GNRC_IPV6_ROUTER
|
||||||
|
/* routers need all-routers multicast address */
|
||||||
|
# define RTR_ADDR (1)
|
||||||
|
#else
|
||||||
|
# define RTR_ADDR (0)
|
||||||
|
#endif
|
||||||
|
#ifndef GNRC_IPV6_NETIF_ADDR_NUMOF
|
||||||
|
#define GNRC_IPV6_NETIF_ADDR_NUMOF (6 + RPL_ADDR + RTR_ADDR)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user