summaryrefslogtreecommitdiff
path: root/lib/route-table.h
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@ovn.org>2016-03-24 09:30:57 -0700
committerPravin B Shelar <pshelar@ovn.org>2016-03-24 09:30:57 -0700
commitec6c537986b4c7dc852575107e32184b33d974e8 (patch)
tree462ea495258de0f76666414d0c96108f1cc71fb9 /lib/route-table.h
parent6b6e13293e825dc69937615f42fc99eb023c9086 (diff)
downloadopenvswitch-ec6c537986b4c7dc852575107e32184b33d974e8.tar.gz
sflow: use ovs route API to get source IP address.
Signed-off-by: Pravin B Shelar <pshelar@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/route-table.h')
-rw-r--r--lib/route-table.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/route-table.h b/lib/route-table.h
index 54d77f416..3a02d737a 100644
--- a/lib/route-table.h
+++ b/lib/route-table.h
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
+#include <netinet/in.h>
#include <stdbool.h>
#include <stdint.h>
@@ -29,6 +30,7 @@ uint64_t route_table_get_change_seq(void);
void route_table_init(void);
void route_table_run(void);
void route_table_wait(void);
-bool route_table_fallback_lookup(ovs_be32, char [], ovs_be32 *);
-
+bool route_table_fallback_lookup(const struct in6_addr *ip6_dst,
+ char name[],
+ struct in6_addr *gw6);
#endif /* route-table.h */