From 92fb17f99e36f37238dfa18d04c160a02734c185 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 19 Jul 2023 17:37:49 +0200 Subject: [PATCH] ipv6ll: set force-once flag when adding the IPv6 link-local address After the previous commit, this is needed for 53ba9f4701f30b12637df2c7215a0b7da845b34c ('ipv6ll: don't regenerate the address when it's removed externally') to work properly. --- src/core/nm-l3-ipv6ll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/nm-l3-ipv6ll.c b/src/core/nm-l3-ipv6ll.c index 38aa98fc93..93a0ba4701 100644 --- a/src/core/nm-l3-ipv6ll.c +++ b/src/core/nm-l3-ipv6ll.c @@ -420,7 +420,9 @@ _lladdr_handle_changed(NML3IPv6LL *self, gboolean force_commit) NM_DNS_PRIORITY_DEFAULT_NORMAL, NM_L3_ACD_DEFEND_TYPE_ALWAYS, 0, - NM_L3CFG_CONFIG_FLAGS_NONE, + /* Even if the address was removed from platform, it must + * be re-added, hence FORCE_ONCE. */ + NM_L3CFG_CONFIG_FLAGS_FORCE_ONCE, NM_L3_CONFIG_MERGE_FLAGS_NONE)) changed = TRUE; } else {