From b28dd897f2ad4953fe6d1304343a95edc1b5bd09 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Thu, 17 Sep 2015 01:20:40 +0200 Subject: [PATCH] 6lowpan nd: set router lifetime to a default value --- sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c b/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c index ae05fc8056..ae8cbd3e08 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c +++ b/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c @@ -63,6 +63,7 @@ void gnrc_sixlowpan_nd_router_set_rtr_adv(gnrc_ipv6_netif_t *netif, bool enable) if (enable && (gnrc_ipv6_netif_add_addr(netif->pid, &all_routers, 128, GNRC_IPV6_NETIF_ADDR_FLAGS_NON_UNICAST) != NULL)) { netif->flags |= GNRC_IPV6_NETIF_FLAGS_RTR_ADV; + netif->adv_ltime = GNRC_IPV6_NETIF_DEFAULT_ROUTER_LTIME; } else { netif->flags &= ~GNRC_IPV6_NETIF_FLAGS_RTR_ADV;