19 #ifndef PRIV_NIB_ROUTER_H 20 #define PRIV_NIB_ROUTER_H 25 #include "net/gnrc/netif/internal.h" 30 #include "_nib-internal.h" 36 #if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_ROUTER) || defined(DOXYGEN) 74 static inline void _call_route_info_cb(
gnrc_netif_t *netif,
unsigned type,
123 #define _init_iface_router(netif) (void)netif 124 #define _call_route_info_cb(netif, type, ctx_addr, ctx) (void)netif; \ 128 #define _handle_reply_rs(host) (void)host 129 #define _handle_snd_mc_ra(netif) (void)netif 130 #define _set_rtr_adv(netif) (void)netif 131 #define _snd_rtr_advs(netif, dst, final) (void)netif; \ #define CONFIG_GNRC_IPV6_NIB_6LR
enable features for 6Lo router
Definitions for IPv6 addresses.
const ipv6_addr_t ipv6_addr_all_routers_link_local
uint32_t flags
Flags for the interface.
void _set_rtr_adv(gnrc_netif_t *netif)
Sets the GNRC_NETIF_FLAGS_IPV6_RTR_ADV flags of an interface.
#define GNRC_NETIF_FLAGS_6LO_ABR
This interface acts as a 6Lo border router to the LLN.
void(* route_info_cb)(unsigned type, const ipv6_addr_t *ctx_addr, const void *ctx)
Route info callback.
IPv6 definitions for Network interface API.
#define GNRC_NETIF_FLAGS_IPV6_RTR_ADV
Network interface advertises itself as an IPv6 router (implies GNRC_NETIF_FLAGS_IPV6_FORWARDING to be...
uint32_t last_ra
Timestamp in milliseconds of last unsolicited router advertisement.
static void _init_iface_router(gnrc_netif_t *netif)
Initializes interface for router behavior.
#define IS_ACTIVE(macro)
Allows to verify a macro definition outside the preprocessor.
#define assert(cond)
abort the program if assertion is false
Configuration macro definitions for neighbor information base.
gnrc_netif_ipv6_t ipv6
IPv6 component.
#define GNRC_NETIF_FLAGS_IPV6_FORWARDING
Network interface is enabled for IPv6 forwarding.
#define NDP_RTR_LTIME_SEC
default of AdvDefaultLifetime (in sec)
Representation of a network interface.
Common macros and compiler attributes/pragmas configuration.
uint8_t ra_sent
number of unsolicited router advertisements sent
Data type to represent an IPv6 address.
IPv6 neighbor discovery message type definitions.
uint16_t rtr_ltime
(Advertised) Router lifetime (default 1800).
#define CONFIG_GNRC_IPV6_NIB_6LBR
enable features for 6Lo border router