1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

network: ipv4ll: make link enter failed state on failure of restarting ipv4ll engine

This commit is contained in:
Yu Watanabe 2021-06-21 04:30:56 +09:00
parent fe321d457c
commit 89d8ed9932

View 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);