|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
19 #include <nat/nat66/nat66.api_enum.h>
20 #include <nat/nat66/nat66.api_types.h>
23 #define REPLY_MSG_ID_BASE nm->msg_id_base
31 vl_api_nat66_plugin_enable_disable_reply_t *rmp;
41 REPLY_MACRO (VL_API_NAT66_PLUGIN_ENABLE_DISABLE_REPLY);
49 vl_api_nat66_add_del_interface_reply_t *rmp;
68 vl_api_nat66_add_del_static_mapping_reply_t *rmp;
69 ip6_address_t l_addr, e_addr;
77 clib_net_to_host_u32 (mp->
vrf_id),
80 REPLY_MACRO (VL_API_NAT66_ADD_DEL_STATIC_MAPPING_REPLY);
185 #include <nat/nat66/nat66.api.c>
vl_api_interface_index_t sw_if_index
#define VALIDATE_SW_IF_INDEX(mp)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
int nat66_interface_add_del(u32 sw_if_index, u8 is_inside, u8 is_add)
vl_api_nat_config_flags_t flags
void nat66_interfaces_walk(nat66_interface_walk_fn_t fn, void *ctx)
vl_api_ip6_address_t local_ip_address
#define clib_memcpy(d, s, n)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
int nat66_plugin_enable(u32 outside_vrf)
struct nat66_api_walk_ctx_t_ nat66_api_walk_ctx_t
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static void vl_api_nat66_add_del_static_mapping_t_handler(vl_api_nat66_add_del_static_mapping_t *mp)
void nat66_static_mappings_walk(nat66_static_mapping_walk_fn_t fn, void *ctx)
NAT66 interface details response.
int nat66_static_mapping_add_del(ip6_address_t *l_addr, ip6_address_t *e_addr, u32 vrf_id, u8 is_add)
A protocol Independent FIB table.
u32 ft_table_id
Table ID (hash key) for this FIB.
Combined counter to hold both packets and byte differences.
An API client registration, only in vpp/vlib.
static void setup_message_id_table(api_main_t *am)
Enable/disable NAT66 plugin.
counter_t packets
packet counter
Dump NAT66 static mappings.
#define BAD_SW_IF_INDEX_LABEL
static void vlib_get_combined_counter(const vlib_combined_counter_main_t *cm, u32 index, vlib_counter_t *result)
Get the value of a combined counter, never called in the speed path Scrapes the entire set of per-thr...
vl_api_ip6_address_t external_ip_address
static void vl_api_nat66_interface_dump_t_handler(vl_api_nat66_interface_dump_t *mp)
static void vl_api_nat66_static_mapping_dump_t_handler(vl_api_nat66_static_mapping_dump_t *mp)
Enable/disable NAT66 feature on the interface.
Dump interfaces with NAT66 feature.
int nat66_plugin_disable()
fib_table_t * fib_table_get(fib_node_index_t index, fib_protocol_t proto)
Get a pointer to a FIB table.
static int nat66_api_interface_walk(nat66_interface_t *i, void *arg)
counter_t bytes
byte counter
vl_api_ip6_address_t external_ip_address
#define nat66_interface_is_inside(i)
vl_api_interface_index_t sw_if_index
vl_api_ip6_address_t local_ip_address
vl_api_registration_t * rp
static void vl_api_nat66_add_del_interface_t_handler(vl_api_nat66_add_del_interface_t *mp)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
NAT66 static mapping details response.
NAT66 global declarations.
static void vl_api_nat66_plugin_enable_disable_t_handler(vl_api_nat66_plugin_enable_disable_t *mp)
vl_api_nat_config_flags_t flags
static int nat66_api_static_mapping_walk(nat66_static_mapping_t *m, void *arg)
void * vl_msg_api_alloc(int nbytes)
clib_error_t * nat66_plugin_api_hookup(vlib_main_t *vm)