diff options
author | Tom Gundersen <teg@jklm.no> | 2013-12-17 18:36:09 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-12-17 22:08:12 +0100 |
commit | 22936833e177d9e477e059ec2b4f4fa9213b4e19 (patch) | |
tree | 95f06a7b8fb391c9d8a7d59be5439024d1877410 /src/network/networkd-link.c | |
parent | 2b49a4704109e7417da82bdf1e3cb13c0f347b5b (diff) |
networkd: rename link_update_flags to link_update
We are likely to track more than the flags in the future.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 4cf34a6d94..447b2a91e6 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -391,8 +391,18 @@ int link_configure(Link *link) { return 0; } -int link_update_flags(Link *link, unsigned flags) { +int link_update(Link *link, sd_rtnl_message *m) { + unsigned flags; + int r; + assert(link); + assert(m); + + r = sd_rtnl_message_link_get_flags(m, &flags); + if (r < 0) { + log_warning("Could not get link flags of '%s'", link->ifname); + return r; + } if (link->flags & IFF_UP && !(flags & IFF_UP)) log_info("Interface '%s' is down", link->ifname); |