network: also stop IPv4ACD client in link_stop_clients()

This commit is contained in:
Yu Watanabe 2020-10-14 15:27:57 +09:00
parent 66f507e1ba
commit a7df5cae54
1 changed files with 6 additions and 0 deletions

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