The friendly Operating System for the Internet of Things
ndp/router.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
21 #ifndef GNRC_NDP_ROUTER_H
22 #define GNRC_NDP_ROUTER_H
23 
24 #include <stdbool.h>
25 
26 #include "kernel_types.h"
27 #include "net/ipv6/hdr.h"
28 #include "net/ndp.h"
29 #include "net/gnrc/ipv6/nc.h"
30 #include "timex.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
47 void gnrc_ndp_router_set_router(gnrc_ipv6_netif_t *iface, bool enable);
48 
65 void gnrc_ndp_router_set_rtr_adv(gnrc_ipv6_netif_t *iface, bool enable);
66 
74 
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* GNRC_NDP_ROUTER_H */
88 
Types used by the kernel.
Definition of IPv6 interface type.
Definition: ipv6/netif.h:276
void gnrc_ndp_router_send_rtr_adv(gnrc_ipv6_nc_t *neighbor)
Send an solicited router advertisement to IPv6 address of neighbor.
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...
Neighbor cache definitions.
IPv6 header type and helper function definitions.
Utility library for comparing and computing timestamps.
void gnrc_ndp_router_set_router(gnrc_ipv6_netif_t *iface, bool enable)
Set iface to router mode.
IPv6 neighbor discovery message type definitions.
Neighbor cache entry as defined in RFC 4861, section 5.1 .
Definition: nc.h:122
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.