This will be used in a future commit.
---
 lib/rtnetlink-link.c |    1 +
 lib/rtnetlink-link.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/rtnetlink-link.c b/lib/rtnetlink-link.c
index 0a40cea..7d26d86 100644
--- a/lib/rtnetlink-link.c
+++ b/lib/rtnetlink-link.c
@@ -63,6 +63,7 @@ rtnetlink_link_parse(struct ofpbuf *buf,
         change->nlmsg_type     = nlmsg->nlmsg_type;
         change->ifi_index      = ifinfo->ifi_index;
         change->ifname         = nl_attr_get_string(attrs[IFLA_IFNAME]);
+        change->running        = ifinfo->ifi_flags & IFF_RUNNING;
         change->master_ifindex = (attrs[IFLA_MASTER]
                                   ? nl_attr_get_u32(attrs[IFLA_MASTER])
                                   : 0);
diff --git a/lib/rtnetlink-link.h b/lib/rtnetlink-link.h
index 23f1ef2..24a7728 100644
--- a/lib/rtnetlink-link.h
+++ b/lib/rtnetlink-link.h
@@ -37,6 +37,7 @@ struct rtnetlink_link_change {
     /* Extracted from Netlink attributes. */
     const char *ifname;         /* Name of network device. */
     int master_ifindex;         /* Ifindex of datapath master (0 if none). */
+    bool running;               /* Carrier of network device. */
 };
 
 /* Function called to report that a netdev has changed.  'change' describes the
-- 
1.7.6.1

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to