Skip to content

Commit 259c65f

Browse files
committed
network: move ndisc_flush() to link_stop_engines()
As it is not related to any static configs.
1 parent a0e99a3 commit 259c65f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/network/networkd-link.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ int link_stop_engines(Link *link, bool may_keep_dhcp) {
430430
if (k < 0)
431431
r = log_link_warning_errno(link, k, "Could not stop IPv6 Router Discovery: %m");
432432

433+
ndisc_flush(link);
434+
433435
k = sd_radv_stop(link->radv);
434436
if (k < 0)
435437
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) {
10941096
if (k < 0 && r >= 0)
10951097
r = k;
10961098

1097-
ndisc_flush(link);
1098-
10991099
return r;
11001100
}
11011101

0 commit comments

Comments
 (0)