From 432f6c34ab82e4933ece77ae1e64b03b77fc70d4 Mon Sep 17 00:00:00 2001 From: test Date: Wed, 25 Nov 2015 00:07:01 +0100 Subject: [PATCH] ndp: use on-link flag instead of auto flag --- sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c b/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c index d2546c69cb..d9f51cbc7f 100644 --- a/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c +++ b/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c @@ -746,7 +746,7 @@ bool gnrc_ndp_internal_pi_opt_handle(kernel_pid_t iface, uint8_t icmpv6_type, } /* TODO: preferred lifetime for address auto configuration */ /* on-link flag MUST stay set if it was */ - netif_addr->flags &= ~NDP_OPT_PI_FLAGS_A; + netif_addr->flags &= NDP_OPT_PI_FLAGS_L; netif_addr->flags |= (pi_opt->flags & NDP_OPT_PI_FLAGS_MASK); return true; }