Router-specific part of router discovery.

Router-specific part for the router discovery in IPv6 neighbor discovery. More...

Detailed Description

Files

file  net/gnrc/ndp/router.h
 Router-specific router discovery definitions.
 

Functions

void gnrc_ndp_router_set_router (gnrc_ipv6_netif_t *iface, bool enable)
 Set iface to router mode. More...
 
void gnrc_ndp_router_set_rtr_adv (gnrc_ipv6_netif_t *iface, bool enable)
 Set/Unset GNRC_IPV6_NETIF_FLAGS_RTR_ADV flag for iface. More...
 
void gnrc_ndp_router_retrans_rtr_adv (gnrc_ipv6_netif_t *iface)
 Send an unsolicited router advertisement over iface and reset the timer for the next one if necessary. More...
 
void gnrc_ndp_router_send_rtr_adv (gnrc_ipv6_nc_t *neighbor)
 Send an solicited router advertisement to IPv6 address of neighbor. More...
 

Function Documentation

◆ gnrc_ndp_router_retrans_rtr_adv()

void gnrc_ndp_router_retrans_rtr_adv ( gnrc_ipv6_netif_t iface)
Parameters
[in]ifaceAn IPv6 interface.

◆ gnrc_ndp_router_send_rtr_adv()

void gnrc_ndp_router_send_rtr_adv ( gnrc_ipv6_nc_t neighbor)
Parameters
[in]neighborA neighbor cache entry.

◆ gnrc_ndp_router_set_router()

void gnrc_ndp_router_set_router ( gnrc_ipv6_netif_t iface,
bool  enable 
)

This sets/unsets the GNRC_IPV6_NETIF_FLAGS_ROUTER and GNRC_IPV6_NETIF_FLAGS_RTR_ADV and initializes or ceases router behavior for neighbor discovery.

Parameters
[in]ifaceAn IPv6 interface. Must not be NULL.
[in]enableStatus for the GNRC_IPV6_NETIF_FLAGS_ROUTER and GNRC_IPV6_NETIF_FLAGS_RTR_ADV flags.

◆ gnrc_ndp_router_set_rtr_adv()

void gnrc_ndp_router_set_rtr_adv ( gnrc_ipv6_netif_t iface,
bool  enable 
)
See also
RFC 4861, section 6.2.2
RFC 4861, section 6.2.5

GNRC_IPV6_NETIF_FLAGS_RTR_ADV and initializes or ceases periodic router advertising behavior for neighbor discovery.

Parameters
[in]ifaceAn IPv6 interface. Must not be NULL.
[in]enableStatus for the GNRC_IPV6_NETIF_FLAGS_RTR_ADV flags.