1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-24 02:03:54 +03:00

networkd: address - update link operstate when address is updated

The operstate may change based on address properties, so make a change of
address trigger an operstate update.
This commit is contained in:
Tom Gundersen 2015-10-27 00:06:10 +01:00
parent 86655331bc
commit a3a019e125

View File

@ -318,8 +318,12 @@ int address_update(Address *address, unsigned char flags, unsigned char scope, s
address->scope = scope;
address->cinfo = *cinfo;
if (!ready && address_is_ready(address) && address->link)
link_check_ready(address->link);
if (address->link) {
link_update_operstate(address->link);
if (!ready && address_is_ready(address))
link_check_ready(address->link);
}
return 0;
}