From 6787917dfa423e71745a9332ff11d62094e03a5a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 17 Jul 2019 23:12:07 +0900 Subject: [PATCH] network: update state file after dhcp6 events E.g. DNS servers may be received from DHCPv6 server. If the link is already in configured state, the DNS servers are not written in the state file. --- src/network/networkd-dhcp6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c index 9d55276..d6262a3 100644 --- a/src/network/networkd-dhcp6.c +++ b/src/network/networkd-dhcp6.c @@ -497,6 +497,7 @@ static void dhcp6_handler(sd_dhcp6_client *client, int event, void *userdata) { (void) dhcp6_lease_pd_prefix_lost(client, link); (void) dhcp6_prefix_remove_all(link->manager, link); + link_dirty(link); link->dhcp6_configured = false; break; @@ -519,6 +520,7 @@ static void dhcp6_handler(sd_dhcp6_client *client, int event, void *userdata) { return; } + link_dirty(link); link->dhcp6_configured = true; break; -- 2.7.4