From 88ffdc93c8d287effd6eeeb8db149ff1da9ff4bd Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 17 Nov 2014 14:40:22 +0900 Subject: 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 Acked-by: Pravin B Shelar --- lib/ovs-router.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ovs-router.c') 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 -- cgit v1.2.1