summaryrefslogtreecommitdiff
path: root/lib/netdev.h
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2009-08-29 15:58:40 -0700
committerJustin Pettit <jpettit@nicira.com>2009-09-01 14:48:34 -0700
commit13063c3b38aeaadf4802afe2b119198c2db41866 (patch)
tree1ee156656610cbc13a1695448a4645f8f8dfd5e3 /lib/netdev.h
parenta26ef51703333b9ab337ba13f397c28c062422fd (diff)
downloadopenvswitch-13063c3b38aeaadf4802afe2b119198c2db41866.tar.gz
netdev: Add netdev_get_next_hop call
Add ability to determine the next hop IP address and device used to reach a given host.
Diffstat (limited to 'lib/netdev.h')
-rw-r--r--lib/netdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netdev.h b/lib/netdev.h
index 9a5561994..84ae16ee4 100644
--- a/lib/netdev.h
+++ b/lib/netdev.h
@@ -107,6 +107,8 @@ int netdev_set_policing(struct netdev *, uint32_t kbits_rate,
void netdev_enumerate(struct svec *);
bool netdev_find_dev_by_in4(const struct in_addr *in4, char **netdev_name);
+int netdev_get_next_hop(const struct in_addr *host, struct in_addr *next_hop,
+ char **netdev_name);
int netdev_nodev_get_flags(const char *netdev_name, enum netdev_flags *);
bool netdev_nodev_get_in4(const char *netdev_name, struct in_addr *in4,
struct in_addr *mask);