|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
19 #ifndef __included_nat66_h__
20 #define __included_nat66_h__
53 #define NAT66_INTERFACE_FLAG_IS_INSIDE 1
54 #define NAT66_INTERFACE_FLAG_IS_OUTSIDE 2
55 #define nat66_interface_is_inside(i) i->flags & NAT66_INTERFACE_FLAG_IS_INSIDE
56 #define nat66_interface_is_outside(i) i->flags & NAT66_INTERFACE_FLAG_IS_OUTSIDE
84 #define nat66_elog(_level, _str) \
87 nat66_main_t *nm = &nat66_main; \
88 if (PREDICT_FALSE (nm->log_level >= _level)) \
90 ELOG_TYPE_DECLARE (e) = \
92 .format = "nat66-msg " _str, \
95 ELOG_DATA (&vlib_global_main.elog_main, e); \
99 #define nat66_elog_warn(nat_elog_str) \
100 nat66_elog(0x02, "[warning] " nat_elog_str)
void nat66_static_mappings_walk(nat66_static_mapping_walk_fn_t fn, void *ctx)
int(* nat66_static_mapping_walk_fn_t)(nat66_static_mapping_t *sm, void *ctx)
vlib_combined_counter_main_t session_counters
Session counters.
fib_source_t nat_fib_src_hi
int nat66_plugin_enable(u32 outside_vrf)
int(* nat66_interface_walk_fn_t)(nat66_interface_t *i, void *ctx)
int nat66_plugin_disable()
int nat66_interface_add_del(u32 sw_if_index, u8 is_inside, u8 is_add)
sll srl srl sll sra u16x4 i
struct _vlib_node_registration vlib_node_registration_t
nat66_static_mapping_t * nat66_static_mapping_get(ip6_address_t *addr, u32 fib_index, u8 is_local)
clib_bihash_24_8_t sm_l
Static mapping by local address lookup table.
A collection of combined counters.
vlib_node_registration_t nat66_in2out_node
(constructor) VLIB_REGISTER_NODE (nat66_in2out_node)
int nat66_static_mapping_add_del(ip6_address_t *l_addr, ip6_address_t *e_addr, u32 vrf_id, u8 is_add)
nat66_interface_t * interfaces
Interface pool.
clib_bihash_24_8_t sm_e
Static mapping by external address lookup table.
A collection of simple counters.
void nat66_interfaces_walk(nat66_interface_walk_fn_t fn, void *ctx)
enum fib_source_t_ fib_source_t
The different sources that can create a route.
vl_api_interface_index_t sw_if_index
nat66_static_mapping_t * sm
Static mapping pool.
vlib_simple_counter_main_t out2in_packets
vlib_simple_counter_main_t in2out_packets
vlib_node_registration_t nat66_out2in_node
(constructor) VLIB_REGISTER_NODE (nat66_out2in_node)