summaryrefslogtreecommitdiffhomepage
path: root/src/netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c
index 63a0f8b..4a352a6 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -308,7 +308,12 @@ static int handle_rtm_link(struct nlmsghdr *hdr)
ifname = nla_get_string(nla[IFLA_IFNAME]);
avl_for_each_element(&interfaces, iface, avl) {
- if (strcmp(iface->ifname, ifname) || iface->ifindex == ifi->ifi_index)
+ if (strcmp(iface->ifname, ifname))
+ continue;
+
+ iface->ifflags = ifi->ifi_flags;
+
+ if (iface->ifindex == ifi->ifi_index)
continue;
iface->ifindex = ifi->ifi_index;