Skip to content

Commit

Permalink
[SQUASH ME] update router advertisements on address addition
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed May 22, 2015
1 parent ddaa642 commit d09e366
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d09e366

Please sign in to comment.