From 05b8fc498ee6d5593559b242c1061f94d378f59b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 8 Feb 2022 22:27:17 +0900 Subject: [PATCH] network: skip to set IPv6LL address generation mode if the requested mode is already set --- src/network/networkd-setlink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c index 514833e420..7540f6f60f 100644 --- a/src/network/networkd-setlink.c +++ b/src/network/networkd-setlink.c @@ -685,6 +685,9 @@ int link_request_to_set_addrgen_mode(Link *link) { mode = link_get_ipv6ll_addrgen_mode(link); + if (mode == link->ipv6ll_address_gen_mode) + return 0; + r = link_request_set_link(link, SET_LINK_ADDRESS_GENERATION_MODE, link_set_addrgen_mode_handler, &req); if (r < 0) return r;