mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
network/ndisc: also drop SLAAC addresses and routes on reconfiguring
Especially, this is important for routes, as link_drop_managed_routes() removes only static routes, rather than non-foreign routes.
This commit is contained in:
parent
95e1fbbac4
commit
a86763c70b
@ -1640,7 +1640,8 @@ int ndisc_stop(Link *link) {
|
||||
void ndisc_flush(Link *link) {
|
||||
assert(link);
|
||||
|
||||
/* Remove all RDNSS, DNSSL, and Captive Portal entries, without exception. */
|
||||
/* Remove all addresses, routes, RDNSS, DNSSL, and Captive Portal entries, without exception. */
|
||||
(void) ndisc_drop_outdated(link, /* timestamp_usec = */ USEC_INFINITY);
|
||||
|
||||
link->ndisc_rdnss = set_free(link->ndisc_rdnss);
|
||||
link->ndisc_dnssl = set_free(link->ndisc_dnssl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user