aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-provider.h
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/netdev-provider.h
parent21d6e22eeec05a1c382178dc2eb840afe3b9cca6 (diff)
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/netdev-provider.h')
-rw-r--r--lib/netdev-provider.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h
index d955bb17..038f277f 100644
--- a/lib/netdev-provider.h
+++ b/lib/netdev-provider.h
@@ -518,6 +518,17 @@ struct netdev_class {
int (*get_next_hop)(const struct in_addr *host, struct in_addr *next_hop,
char **netdev_name);
+ /* Looks up the name of the interface out of which traffic will egress if
+ * 'netdev' is a tunnel. If unsuccessful, or 'netdev' is not a tunnel,
+ * will return null. This function does not necessarily return the
+ * physical interface out which traffic will egress. Instead it returns
+ * the interface which is assigned 'netdev's remote_ip. This may be an
+ * internal interface such as a bridge port.
+ *
+ * This function may be set to null if 'netdev' is not a tunnel or it is
+ * not supported. */
+ const char *(*get_tnl_iface)(const struct netdev *netdev);
+
/* Looks up the ARP table entry for 'ip' on 'netdev' and stores the
* corresponding MAC address in 'mac'. A return value of ENXIO, in
* particular, indicates that there is no ARP table entry for 'ip' on