From d09e3660da008a5c51c3ceb9f6d366fad95c8b50 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 22 May 2015 17:43:29 +0200 Subject: [PATCH] [SQUASH ME] update router advertisements on address addition --- sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c b/sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c index ea39ccff748c..877a58ac9fd3 100644 --- a/sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c +++ b/sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c @@ -70,6 +70,12 @@ static ng_ipv6_addr_t *_add_addr_to_entry(ng_ipv6_netif_t *entry, const ng_ipv6_ _add_addr_to_entry(entry, &ll_addr, 64, flags | NG_IPV6_NETIF_ADDR_FLAGS_NDP_ON_LINK); + +#ifdef MODULE_NG_NDP_RTR + if (entry->flags & NG_IPV6_NETIF_FLAGS_ROUTER) { + ng_ndp_rtr_advertise_periodically(entry); + } +#endif } else { entry->addrs[i].flags |= NG_IPV6_NETIF_ADDR_FLAGS_NDP_ON_LINK;