]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: also stop IPv4ACD client in link_stop_clients()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Oct 2020 06:27:57 +0000 (15:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Oct 2020 06:38:29 +0000 (15:38 +0900)
src/network/networkd-link.c

index d42bbd179a731cc803d6ed5e63c4ab9fc6434a9c..3e83959bc87517567424606577c9c7732a863c05 100644 (file)
@@ -623,6 +623,12 @@ int link_stop_clients(Link *link, bool may_keep_dhcp) {
                         r = log_link_warning_errno(link, k, "Could not stop DHCPv4 client: %m");
         }
 
+        if (link->dhcp_acd) {
+                k = sd_ipv4acd_stop(link->dhcp_acd);
+                if (k < 0)
+                        r = log_link_warning_errno(link, k, "Could not stop IPv4 ACD client for DHCPv4: %m");
+        }
+
         if (link->ipv4ll) {
                 k = sd_ipv4ll_stop(link->ipv4ll);
                 if (k < 0)