2014-10-16 11:38:12 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2014 Nicira, Inc.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at:
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OVS_TNL_ROUTER_H
|
|
|
|
#define OVS_TNL_ROUTER_H 1
|
|
|
|
|
2017-11-06 14:42:32 -08:00
|
|
|
#include <sys/types.h>
|
2015-12-04 23:31:40 +08:00
|
|
|
#include <netinet/in.h>
|
|
|
|
|
2014-10-16 11:38:12 -07:00
|
|
|
#include "util.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-12-28 11:41:25 -08:00
|
|
|
bool ovs_router_lookup(uint32_t mark, const struct in6_addr *ip_dst,
|
2025-02-27 09:37:13 +01:00
|
|
|
char output_netdev[],
|
2016-03-24 09:30:57 -07:00
|
|
|
struct in6_addr *src, struct in6_addr *gw);
|
2014-11-19 22:12:21 -08:00
|
|
|
void ovs_router_init(void);
|
2016-12-28 11:41:25 -08:00
|
|
|
void ovs_router_insert(uint32_t mark, const struct in6_addr *ip_dst,
|
2018-04-18 11:03:47 +08:00
|
|
|
uint8_t plen, bool local,
|
2025-02-27 09:37:13 +01:00
|
|
|
const char output_netdev[], const struct in6_addr *gw,
|
2023-03-06 11:49:19 +09:00
|
|
|
const struct in6_addr *prefsrc);
|
2024-02-20 23:35:42 +01:00
|
|
|
void ovs_router_force_insert(uint32_t mark, const struct in6_addr *ip_dst,
|
|
|
|
uint8_t plen, bool local,
|
2025-02-27 09:37:13 +01:00
|
|
|
const char output_netdev[],
|
2024-02-20 23:35:42 +01:00
|
|
|
const struct in6_addr *gw,
|
|
|
|
const struct in6_addr *prefsrc);
|
2014-11-17 14:40:22 +09:00
|
|
|
void ovs_router_flush(void);
|
2018-03-31 17:12:55 -07:00
|
|
|
|
|
|
|
void ovs_router_disable_system_routing_table(void);
|
|
|
|
|
2022-04-01 11:02:27 -04:00
|
|
|
int ovs_router_get_netdev_source_address(const struct in6_addr *ip6_dst,
|
2025-02-27 09:37:13 +01:00
|
|
|
const char netdev_name[],
|
2022-04-01 11:02:27 -04:00
|
|
|
struct in6_addr *psrc);
|
|
|
|
|
2014-10-16 11:38:12 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|