2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

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>
This commit is contained in:
YAMAMOTO Takashi
2014-11-17 14:40:22 +09:00
parent 6595fb00f0
commit 88ffdc93c8
10 changed files with 22 additions and 64 deletions

View File

@@ -19,18 +19,14 @@
#include "route-table.h"
bool
ovs_router_lookup(ovs_be32 ip_dst OVS_UNUSED, char output_bridge[] OVS_UNUSED,
ovs_be32 *gw)
route_table_fallback_lookup(ovs_be32 ip_dst OVS_UNUSED,
char output_bridge[] OVS_UNUSED,
ovs_be32 *gw)
{
*gw = 0;
return false;
}
void
ovs_router_init(void)
{
}
uint64_t
route_table_get_change_seq(void)
{
@@ -40,6 +36,7 @@ route_table_get_change_seq(void)
void
route_table_init(void)
{
ovs_router_init();
}
void