From 9ceb7cd30c0c2fe7bc05a5dfbdb2586dafe70d0a Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 19 Dec 2023 18:33:59 +0100 Subject: [PATCH] gnrc/ipv6/nib: fix GNRC_IPV6_STATIC_LLADDR when link state changes --- sys/net/gnrc/network_layer/ipv6/nib/nib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/network_layer/ipv6/nib/nib.c b/sys/net/gnrc/network_layer/ipv6/nib/nib.c index 5fe55a0529e5..9fdb91bad524 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/nib.c +++ b/sys/net/gnrc/network_layer/ipv6/nib/nib.c @@ -143,6 +143,7 @@ void gnrc_ipv6_nib_iface_up(gnrc_netif_t *netif) _init_iface_arsm(netif); netif->ipv6.rs_sent = 0; netif->ipv6.na_sent = 0; + _add_static_lladdr(netif); _auto_configure_addr(netif, &ipv6_addr_link_local_prefix, 64U); if (_should_search_rtr(netif)) { uint32_t next_rs_time = random_uint32_range(0, NDP_MAX_RS_MS_DELAY); @@ -212,7 +213,6 @@ void gnrc_ipv6_nib_init_iface(gnrc_netif_t *netif) gnrc_netif_release(netif); return; } - _add_static_lladdr(netif); gnrc_netif_release(netif); }