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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user