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

networkd: do not drop config for unmanaged interfaces

Flushing foreign configuration for unmanaged interfaces is outright
evil, especially when it's a regular occurence with Wi-Fi.

Fixes: 3104883ddc "networkd: remove route if carrier is lost"
Ref: #3831
This commit is contained in:
Mantas Mikulėnas 2016-08-24 18:26:48 +03:00
parent 3dea75dead
commit c436d55397
No known key found for this signature in database
GPG Key ID: D24F6CB2C1B52632

View File

@ -2957,9 +2957,11 @@ static int link_carrier_lost(Link *link) {
if (r < 0)
return r;
if (link->state != LINK_STATE_UNMANAGED) {
r = link_drop_foreign_config(link);
if (r < 0)
return r;
}
r = link_handle_bound_by_list(link);
if (r < 0)