network: move ndisc_flush() to link_stop_engines()

As it is not related to any static configs.
This commit is contained in:
Yu Watanabe
2022-02-01 11:30:37 +09:00
parent a0e99a377a
commit 259c65f36c
+2 -2
View File
@@ -430,6 +430,8 @@ int link_stop_engines(Link *link, bool may_keep_dhcp) {
if (k < 0)
r = log_link_warning_errno(link, k, "Could not stop IPv6 Router Discovery: %m");
ndisc_flush(link);
k = sd_radv_stop(link->radv);
if (k < 0)
r = log_link_warning_errno(link, k, "Could not stop IPv6 Router Advertisement: %m");
@@ -1094,8 +1096,6 @@ static int link_drop_managed_config(Link *link) {
if (k < 0 && r >= 0)
r = k;
ndisc_flush(link);
return r;
}