]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: ipv4ll: make link enter failed state on failure of restarting ipv4ll engine
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 20 Jun 2021 19:30:56 +0000 (04:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Jun 2021 15:49:02 +0000 (00:49 +0900)
src/network/networkd-ipv4ll.c

index a2a76d848cb03ba3c6cb953d774644d693a5bf8c..e1dbbabf8f37445d8f4ec9319bb014a59ea9d961 100644 (file)
@@ -122,8 +122,10 @@ static void ipv4ll_handler(sd_ipv4ll *ll, int event, void *userdata) {
                         }
 
                         r = sd_ipv4ll_restart(ll);
-                        if (r < 0)
+                        if (r < 0) {
                                 log_link_warning_errno(link, r, "Could not acquire IPv4 link-local address: %m");
+                                link_enter_failed(link);
+                        }
                         break;
                 case SD_IPV4LL_EVENT_BIND:
                         r = ipv4ll_address_claimed(ll, link);