summaryrefslogtreecommitdiff
path: root/lib/rtnetlink-link.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2010-12-21 16:26:21 -0800
committerEthan Jackson <ethan@nicira.com>2011-01-04 12:35:59 -0800
commitea83a2fcd0d31246ece7bdea4c54e162f432e81c (patch)
tree57bafdf295a0a29b3ead9b1b3b39ed71fa859847 /lib/rtnetlink-link.c
parent21d6e22eeec05a1c382178dc2eb840afe3b9cca6 (diff)
downloadopenvswitch-ea83a2fcd0d31246ece7bdea4c54e162f432e81c.tar.gz
lib: Show tunnel egress interface in ovsdb
This commit parses rtnetlink address notifications from the kernel in order to display the egress interface of tunnels in the database. Bug #4103.
Diffstat (limited to 'lib/rtnetlink-link.c')
-rw-r--r--lib/rtnetlink-link.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rtnetlink-link.c b/lib/rtnetlink-link.c
index ffd615bfa..ad83a1d27 100644
--- a/lib/rtnetlink-link.c
+++ b/lib/rtnetlink-link.c
@@ -29,7 +29,10 @@
static struct rtnetlink *rtn = NULL;
static struct rtnetlink_link_change rtn_change;
-static bool
+/* Parses a rtnetlink message 'buf' into 'change'. If 'buf' is unparseable,
+ * leaves 'change' untouched and returns false. Otherwise, populates 'change'
+ * and returns true. */
+bool
rtnetlink_link_parse(struct ofpbuf *buf,
struct rtnetlink_link_change *change)
{