From a3a019e125ff2ab38505579eaddce08874e270aa Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 27 Oct 2015 00:06:10 +0100 Subject: 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. --- src/network/networkd-address.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index e550ee5701..0338fe9393 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -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; } -- cgit v1.2.3-54-g00ecf