summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-20 21:30:56 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-06-30 17:49:02 +0200
commit89d8ed9932fe368a07495a9398bb4cabcf4add20 (patch)
treec55116c98872fc4b7a739c8163e1d7e2ef7c22b1 /src/network
parentnetwork: introduce link_get_by_hw_addr() (diff)
downloadsystemd-89d8ed9932fe368a07495a9398bb4cabcf4add20.tar.xz
systemd-89d8ed9932fe368a07495a9398bb4cabcf4add20.zip
network: ipv4ll: make link enter failed state on failure of restarting ipv4ll engine
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-ipv4ll.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-ipv4ll.c b/src/network/networkd-ipv4ll.c
index a2a76d848c..e1dbbabf8f 100644
--- a/src/network/networkd-ipv4ll.c
+++ b/src/network/networkd-ipv4ll.c
@@ -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);