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) int(* nat66_interface_walk_fn_t)(nat66_interface_t *i, void *ctx)
enum fib_source_t_ fib_source_t
The different sources that can create a route.
vlib_simple_counter_main_t in2out_packets
int nat66_plugin_disable()
nat66_interface_t * interfaces
Interface pool.
clib_bihash_24_8_t sm_e
Static mapping by external address lookup table.
int nat66_static_mapping_add_del(ip6_address_t *l_addr, ip6_address_t *e_addr, u32 vrf_id, u8 is_add)
void nat66_static_mappings_walk(nat66_static_mapping_walk_fn_t fn, void *ctx)
A collection of simple counters.
vl_api_interface_index_t sw_if_index
vlib_node_registration_t nat66_in2out_node
(constructor) VLIB_REGISTER_NODE (nat66_in2out_node)
vlib_simple_counter_main_t out2in_packets
vlib_node_registration_t nat66_out2in_node
(constructor) VLIB_REGISTER_NODE (nat66_out2in_node)
int(* nat66_static_mapping_walk_fn_t)(nat66_static_mapping_t *sm, void *ctx)
nat66_static_mapping_t * nat66_static_mapping_get(ip6_address_t *addr, u32 fib_index, u8 is_local)
void nat66_interfaces_walk(nat66_interface_walk_fn_t fn, void *ctx)
sll srl srl sll sra u16x4 i
clib_bihash_24_8_t sm_l
Static mapping by local address lookup table.
fib_source_t nat_fib_src_hi
int nat66_plugin_enable(u32 outside_vrf)
struct _vlib_node_registration vlib_node_registration_t
vlib_combined_counter_main_t session_counters
Session counters.
A collection of combined counters.
nat66_static_mapping_t * sm
Static mapping pool.
int nat66_interface_add_del(u32 sw_if_index, u8 is_inside, u8 is_add)