_nib-router.h

void _init_iface_router(gnrc_netif_t * netif)

Initializes interface for router behavior.

Parameters

netif:An interface.

void _call_route_info_cb(gnrc_netif_t * netif, unsigned type, const ipv6_addr_t * ctx_addr, const void * ctx)

Helper function to safely call the gnrc/netif/ipv6.h::gnrc_netif_ipv6_t::route_info_cb of an interface.

Parameters

netif:An interface.
type: of the route info.
ctx_addr:Context address of the route info.
ctx:Further context of the route info.

void _handle_reply_rs(_nib_onl_entry_t * host)

Handler for nib.h::GNRC_IPV6_NIB_REPLY_RS event handler.

Parameters

host:Host that sent the router solicitation

void _handle_snd_mc_ra(gnrc_netif_t * netif)

Handler for nib.h::GNRC_IPV6_NIB_SND_MC_RA event handler.

Parameters

netif:Network interface to send multicast router advertisement over.

void _set_rtr_adv(gnrc_netif_t * netif)

Set the flags.h::GNRC_NETIF_FLAGS_IPV6_RTR_ADV flag for an interface and starts advertising that interface as a router.

Parameters

netif:Interface to set the flags.h::GNRC_NETIF_FLAGS_IPV6_RTR_ADV for.

void _snd_rtr_advs(gnrc_netif_t * netif, const ipv6_addr_t * dst, bool final)

Send router advertisements.

If ipv6/nib/conf.h::GNRC_IPV6_NIB_CONF_MULTIHOP_P6C is not 0 this sends one router advertisement per configured ABR, otherwise it just sends one single router advertisement for the interface.

Parameters

netif:The interface to send the router advertisement over.
dst:Destination address for the router advertisement.
final:The router advertisement are the final ones of the netif (because it was set to be a non-forwarding interface e.g.).