summaryrefslogtreecommitdiff
path: root/lib/ovs-router.c
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2014-11-17 14:40:22 +0900
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>2014-12-10 13:38:01 +0900
commit88ffdc93c8d287effd6eeeb8db149ff1da9ff4bd (patch)
tree502ac01b0de4652e2d6c73e204c8aaba68ff8510 /lib/ovs-router.c
parent6595fb00f0aa3e97e6e6c44012837b746f081f90 (diff)
downloadopenvswitch-88ffdc93c8d287effd6eeeb8db149ff1da9ff4bd.tar.gz
ovs-router: non-Linux support
Refactor ovs-router so that it can work with non-Linux platforms at least in some extent, using the existing route-table code as a fallback. Known restriction: for such platforms, "ovs/router/show" command does not show "Cached" kernel routes. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Acked-by: Pravin B Shelar <pshelar@nicira.com>
Diffstat (limited to 'lib/ovs-router.c')
-rw-r--r--lib/ovs-router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ovs-router.c b/lib/ovs-router.c
index e4f8a089e..b095f681e 100644
--- a/lib/ovs-router.c
+++ b/lib/ovs-router.c
@@ -35,8 +35,8 @@
#include "packets.h"
#include "seq.h"
#include "ovs-router.h"
-#include "ovs-router-linux.h"
#include "ovs-thread.h"
+#include "route-table.h"
#include "unixctl.h"
#include "util.h"
@@ -76,7 +76,7 @@ ovs_router_lookup(ovs_be32 ip_dst, char output_bridge[], ovs_be32 *gw)
*gw = p->gw;
return true;
}
- return false;
+ return route_table_fallback_lookup(ip_dst, output_bridge, gw);
}
static void