]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: stop IPv4LL engine when DHCPv4 address is successfully acquired
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 23 Nov 2020 04:28:47 +0000 (13:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 30 Nov 2020 03:41:30 +0000 (12:41 +0900)
src/network/networkd-dhcp4.c

index 78af53c38188fdfbe40d25ea7fb9cd22775e86f0..c4024499f1daebb479d97d20b19eae770db5ae67 100644 (file)
@@ -70,6 +70,10 @@ static void dhcp4_check_ready(Link *link) {
                 return;
         }
 
+        r = sd_ipv4ll_stop(link->ipv4ll);
+        if (r < 0)
+                log_link_warning_errno(link, r, "Failed to drop IPv4 link-local address, ignoring: %m");
+
         link_check_ready(link);
 }