diff options
author | Tom Gundersen <teg@jklm.no> | 2015-09-28 13:30:10 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-10-11 15:04:16 +0200 |
commit | ce6c77ebf12f80c807ad7589a1fb565fabc6a543 (patch) | |
tree | a98bda5e7ec2f3a54b2e75d4277092466e2e887a /src/network/networkd-link.c | |
parent | 91b5f997316ddc77d26f9a7a5e24c335484586bd (diff) |
networkd: address - introduce address_is_ready()
Checks that a given address is not tentative nor deprecated.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 78853c8cca..755d9c919d 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -2275,7 +2275,7 @@ static void link_update_operstate(Link *link) { /* if we have carrier, check what addresses we have */ SET_FOREACH(address, link->addresses, i) { - if (address->flags & (IFA_F_TENTATIVE | IFA_F_DEPRECATED)) + if (!address_is_ready(address)) continue; if (address->scope < scope) |