FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
nat44_ei_in2out.c File Reference

NAT44 EI inside to outside network translation. More...

+ Include dependency graph for nat44_ei_in2out.c:

Go to the source code of this file.

Data Structures

struct  nat44_ei_in2out_trace_t
 

Macros

#define foreach_nat44_ei_in2out_error
 

Enumerations

enum  nat44_ei_in2out_error_t { NAT44_EI_IN2OUT_N_ERROR }
 
enum  nat44_ei_in2out_next_t {
  NAT44_EI_IN2OUT_NEXT_LOOKUP, NAT44_EI_IN2OUT_NEXT_DROP, NAT44_EI_IN2OUT_NEXT_ICMP_ERROR, NAT44_EI_IN2OUT_NEXT_SLOW_PATH,
  NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF, NAT44_EI_IN2OUT_N_NEXT
}
 
enum  nat44_ei_in2out_hairpinnig_finish_next_t { NAT44_EI_IN2OUT_HAIRPINNING_FINISH_NEXT_DROP, NAT44_EI_IN2OUT_HAIRPINNING_FINISH_NEXT_LOOKUP, NAT44_EI_IN2OUT_HAIRPINNING_FINISH_N_NEXT }
 

Functions

static u8format_nat44_ei_in2out_trace (u8 *s, va_list *args)
 
static u8format_nat44_ei_in2out_fast_trace (u8 *s, va_list *args)
 
static int nat44_ei_not_translate_fast (vlib_node_runtime_t *node, u32 sw_if_index0, ip4_header_t *ip0, u32 proto0, u32 rx_fib_index0)
 
static int nat44_ei_not_translate (nat44_ei_main_t *nm, vlib_node_runtime_t *node, u32 sw_if_index0, ip4_header_t *ip0, u32 proto0, u32 rx_fib_index0, u32 thread_index)
 
static int nat44_ei_not_translate_output_feature (nat44_ei_main_t *nm, ip4_header_t *ip0, u32 proto0, u16 src_port, u16 dst_port, u32 thread_index, u32 sw_if_index)
 
int nat44_i2o_is_idle_session_cb (clib_bihash_kv_8_8_t *kv, void *arg)
 
static u32 slow_path (nat44_ei_main_t *nm, vlib_buffer_t *b0, ip4_header_t *ip0, ip4_address_t i2o_addr, u16 i2o_port, u32 rx_fib_index0, nat_protocol_t nat_proto, nat44_ei_session_t **sessionp, vlib_node_runtime_t *node, u32 next0, u32 thread_index, f64 now)
 
static_always_inline nat44_ei_in2out_error_t icmp_get_key (vlib_buffer_t *b, ip4_header_t *ip0, ip4_address_t *addr, u16 *port, nat_protocol_t *nat_proto)
 
u32 nat44_ei_icmp_match_in2out_slow (vlib_node_runtime_t *node, u32 thread_index, vlib_buffer_t *b0, ip4_header_t *ip0, ip4_address_t *addr, u16 *port, u32 *fib_index, nat_protocol_t *proto, nat44_ei_session_t **p_s0, u8 *dont_translate)
 Get address and port values to be used for ICMP packet translation and create session if needed. More...
 
u32 nat44_ei_icmp_match_in2out_fast (vlib_node_runtime_t *node, u32 thread_index, vlib_buffer_t *b0, ip4_header_t *ip0, ip4_address_t *addr, u16 *port, u32 *fib_index, nat_protocol_t *proto, nat44_ei_session_t **s0, u8 *dont_translate)
 
u32 nat44_ei_icmp_in2out (vlib_buffer_t *b0, ip4_header_t *ip0, icmp46_header_t *icmp0, u32 sw_if_index0, u32 rx_fib_index0, vlib_node_runtime_t *node, u32 next0, u32 thread_index, nat44_ei_session_t **p_s0)
 
static_always_inline u32 nat44_ei_icmp_in2out_slow_path (nat44_ei_main_t *nm, vlib_buffer_t *b0, ip4_header_t *ip0, icmp46_header_t *icmp0, u32 sw_if_index0, u32 rx_fib_index0, vlib_node_runtime_t *node, u32 next0, f64 now, u32 thread_index, nat44_ei_session_t **p_s0)
 
static int nat_in2out_sm_unknown_proto (nat44_ei_main_t *nm, vlib_buffer_t *b, ip4_header_t *ip, u32 rx_fib_index)
 
static uword nat44_ei_in2out_node_fn_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_slow_path, int is_output_feature)
 
 while (n_left_from > 0)
 
static_always_inline int nat44_ei_in2out_hairpinning_finish_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * nat44_ei_in2out_error_strings []
 
vlib_main_tvm
 
vlib_main_t vlib_node_runtime_tnode
 
vlib_main_t vlib_node_runtime_t vlib_frame_tframe
 
vlib_node_registration_t nat44_ei_in2out_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_node) More...
 
vlib_node_registration_t nat44_ei_in2out_output_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_output_node) More...
 
vlib_node_registration_t nat44_ei_in2out_slowpath_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_slowpath_node) More...
 
vlib_node_registration_t nat44_ei_in2out_output_slowpath_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_output_slowpath_node) More...
 
u32 thread_index = vm->thread_index
 
nat44_ei_in2out_next_t next_index = node->cached_next_index
 
nat44_ei_main_tnm = &nat44_ei_main
 
int is_hairpinning = 0
 
 from = vlib_frame_vector_args (frame)
 
 n_left_from = frame->n_vectors
 
return frame n_vectors
 
vlib_node_registration_t nat44_ei_in2out_fast_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_fast_node) More...
 
vlib_node_registration_t nat44_ei_in2out_hairpinning_handoff_ip4_lookup_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_hairpinning_handoff_ip4_lookup_node) More...
 
vlib_node_registration_t nat44_ei_in2out_hairpinning_handoff_interface_output_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_hairpinning_handoff_interface_output_node) More...
 
vlib_node_registration_t nat44_ei_in2out_hairpinning_finish_ip4_lookup_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_hairpinning_finish_ip4_lookup_node) More...
 
vlib_node_registration_t nat44_ei_in2out_hairpinning_finish_interface_output_node
 (constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_hairpinning_finish_interface_output_node) More...
 

Detailed Description

NAT44 EI inside to outside network translation.

Definition in file nat44_ei_in2out.c.

Macro Definition Documentation

◆ foreach_nat44_ei_in2out_error

#define foreach_nat44_ei_in2out_error
Value:
_ (UNSUPPORTED_PROTOCOL, "unsupported protocol") \
_ (OUT_OF_PORTS, "out of ports") \
_ (BAD_OUTSIDE_FIB, "outside VRF ID not found") \
_ (BAD_ICMP_TYPE, "unsupported ICMP type") \
_ (NO_TRANSLATION, "no translation") \
_ (MAX_SESSIONS_EXCEEDED, "maximum sessions exceeded") \
_ (CANNOT_CREATE_USER, "cannot create NAT user")

Definition at line 82 of file nat44_ei_in2out.c.

Enumeration Type Documentation

◆ nat44_ei_in2out_error_t

Enumerator
NAT44_EI_IN2OUT_N_ERROR 

Definition at line 91 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_hairpinnig_finish_next_t

Enumerator
NAT44_EI_IN2OUT_HAIRPINNING_FINISH_NEXT_DROP 
NAT44_EI_IN2OUT_HAIRPINNING_FINISH_NEXT_LOOKUP 
NAT44_EI_IN2OUT_HAIRPINNING_FINISH_N_NEXT 

Definition at line 115 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_next_t

Enumerator
NAT44_EI_IN2OUT_NEXT_LOOKUP 
NAT44_EI_IN2OUT_NEXT_DROP 
NAT44_EI_IN2OUT_NEXT_ICMP_ERROR 
NAT44_EI_IN2OUT_NEXT_SLOW_PATH 
NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF 
NAT44_EI_IN2OUT_N_NEXT 

Definition at line 105 of file nat44_ei_in2out.c.

Function Documentation

◆ format_nat44_ei_in2out_fast_trace()

static u8* format_nat44_ei_in2out_fast_trace ( u8 s,
va_list *  args 
)
static

Definition at line 70 of file nat44_ei_in2out.c.

◆ format_nat44_ei_in2out_trace()

static u8* format_nat44_ei_in2out_trace ( u8 s,
va_list *  args 
)
static

Definition at line 50 of file nat44_ei_in2out.c.

◆ icmp_get_key()

static_always_inline nat44_ei_in2out_error_t icmp_get_key ( vlib_buffer_t b,
ip4_header_t ip0,
ip4_address_t addr,
u16 port,
nat_protocol_t nat_proto 
)

Definition at line 450 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat44_ei_icmp_in2out()

u32 nat44_ei_icmp_in2out ( vlib_buffer_t b0,
ip4_header_t ip0,
icmp46_header_t *  icmp0,
u32  sw_if_index0,
u32  rx_fib_index0,
vlib_node_runtime_t node,
u32  next0,
u32  thread_index,
nat44_ei_session_t **  p_s0 
)

Definition at line 689 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat44_ei_icmp_in2out_slow_path()

static_always_inline u32 nat44_ei_icmp_in2out_slow_path ( nat44_ei_main_t nm,
vlib_buffer_t b0,
ip4_header_t ip0,
icmp46_header_t *  icmp0,
u32  sw_if_index0,
u32  rx_fib_index0,
vlib_node_runtime_t node,
u32  next0,
f64  now,
u32  thread_index,
nat44_ei_session_t **  p_s0 
)

Definition at line 862 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat44_ei_icmp_match_in2out_fast()

u32 nat44_ei_icmp_match_in2out_fast ( vlib_node_runtime_t node,
u32  thread_index,
vlib_buffer_t b0,
ip4_header_t ip0,
ip4_address_t addr,
u16 port,
u32 fib_index,
nat_protocol_t proto,
nat44_ei_session_t **  s0,
u8 dont_translate 
)

Definition at line 614 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat44_ei_icmp_match_in2out_slow()

u32 nat44_ei_icmp_match_in2out_slow ( vlib_node_runtime_t node,
u32  thread_index,
vlib_buffer_t b0,
ip4_header_t ip0,
ip4_address_t addr,
u16 port,
u32 fib_index,
nat_protocol_t proto,
nat44_ei_session_t **  p_s0,
u8 dont_translate 
)

Get address and port values to be used for ICMP packet translation and create session if needed.

Parameters
[in,out]nmNAT main
[in,out]nodeNAT node runtime
[in]thread_indexthread index
[in,out]b0buffer containing packet to be translated
[in,out]ip0ip header
[out]p_protoprotocol used for matching
[out]p_valueaddress and port after NAT translation
[out]p_dont_translateif packet should not be translated
doptional parameter
eoptional parameter

Definition at line 509 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat44_ei_in2out_hairpinning_finish_inline()

static_always_inline int nat44_ei_in2out_hairpinning_finish_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 2042 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:

◆ nat44_ei_in2out_node_fn_inline()

static uword nat44_ei_in2out_node_fn_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_slow_path,
int  is_output_feature 
)
inlinestatic

Definition at line 917 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:

◆ nat44_ei_not_translate()

static int nat44_ei_not_translate ( nat44_ei_main_t nm,
vlib_node_runtime_t node,
u32  sw_if_index0,
ip4_header_t ip0,
u32  proto0,
u32  rx_fib_index0,
u32  thread_index 
)
inlinestatic

Definition at line 181 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat44_ei_not_translate_fast()

static int nat44_ei_not_translate_fast ( vlib_node_runtime_t node,
u32  sw_if_index0,
ip4_header_t ip0,
u32  proto0,
u32  rx_fib_index0 
)
inlinestatic

Definition at line 123 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat44_ei_not_translate_output_feature()

static int nat44_ei_not_translate_output_feature ( nat44_ei_main_t nm,
ip4_header_t ip0,
u32  proto0,
u16  src_port,
u16  dst_port,
u32  thread_index,
u32  sw_if_index 
)
inlinestatic

Definition at line 216 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat44_i2o_is_idle_session_cb()

int nat44_i2o_is_idle_session_cb ( clib_bihash_kv_8_8_t kv,
void *  arg 
)

Definition at line 250 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_in2out_sm_unknown_proto()

static int nat_in2out_sm_unknown_proto ( nat44_ei_main_t nm,
vlib_buffer_t b,
ip4_header_t ip,
u32  rx_fib_index 
)
static

Definition at line 885 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ slow_path()

static u32 slow_path ( nat44_ei_main_t nm,
vlib_buffer_t b0,
ip4_header_t ip0,
ip4_address_t  i2o_addr,
u16  i2o_port,
u32  rx_fib_index0,
nat_protocol_t  nat_proto,
nat44_ei_session_t **  sessionp,
vlib_node_runtime_t node,
u32  next0,
u32  thread_index,
f64  now 
)
static

Definition at line 304 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ while()

while ( n_left_from  ,
 
)

Definition at line 1792 of file nat44_ei_in2out.c.

+ Here is the call graph for this function:

Variable Documentation

◆ frame

Initial value:

Definition at line 1661 of file nat44_ei_in2out.c.

◆ from

Definition at line 1788 of file nat44_ei_in2out.c.

◆ is_hairpinning

int is_hairpinning = 0

Definition at line 1786 of file nat44_ei_in2out.c.

◆ n_left_from

n_left_from = frame->n_vectors

Definition at line 1789 of file nat44_ei_in2out.c.

◆ n_vectors

return frame n_vectors

Definition at line 1971 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_error_strings

char* nat44_ei_in2out_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 99 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_fast_node

vlib_node_registration_t nat44_ei_in2out_fast_node
Initial value:
= {
.name = "nat44-ei-in2out-fast",
.vector_size = sizeof (u32),
.runtime_data_bytes = sizeof (nat44_ei_runtime_t),
.n_next_nodes = NAT44_EI_IN2OUT_N_NEXT,
.next_nodes = {
[NAT44_EI_IN2OUT_NEXT_DROP] = "error-drop",
[NAT44_EI_IN2OUT_NEXT_LOOKUP] = "ip4-lookup",
[NAT44_EI_IN2OUT_NEXT_SLOW_PATH] = "nat44-ei-in2out-slowpath",
[NAT44_EI_IN2OUT_NEXT_ICMP_ERROR] = "ip4-icmp-error",
[NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF] = "nat44-ei-in2out-hairpinning-handoff-ip4-lookup",
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_fast_node)

Definition at line 1974 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_hairpinning_finish_interface_output_node

vlib_node_registration_t nat44_ei_in2out_hairpinning_finish_interface_output_node
Initial value:
= {
.name = "nat44-ei-in2out-hairpinning-finish-interface-output",
.vector_size = sizeof (u32),
.runtime_data_bytes = sizeof (nat44_ei_runtime_t),
.next_nodes = {
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_hairpinning_finish_interface_output_node)

Definition at line 2180 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_hairpinning_finish_ip4_lookup_node

vlib_node_registration_t nat44_ei_in2out_hairpinning_finish_ip4_lookup_node
Initial value:
= {
.name = "nat44-ei-in2out-hairpinning-finish-ip4-lookup",
.vector_size = sizeof (u32),
.runtime_data_bytes = sizeof (nat44_ei_runtime_t),
.next_nodes = {
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_hairpinning_finish_ip4_lookup_node)

Definition at line 2154 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_hairpinning_handoff_interface_output_node

vlib_node_registration_t nat44_ei_in2out_hairpinning_handoff_interface_output_node
Initial value:
= {
.name = "nat44-ei-in2out-hairpinning-handoff-interface-output",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_hairpinning_handoff_interface_output_node)

Definition at line 2027 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_hairpinning_handoff_ip4_lookup_node

vlib_node_registration_t nat44_ei_in2out_hairpinning_handoff_ip4_lookup_node
Initial value:
= {
.name = "nat44-ei-in2out-hairpinning-handoff-ip4-lookup",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_hairpinning_handoff_ip4_lookup_node)

Definition at line 2005 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_node

vlib_node_registration_t nat44_ei_in2out_node
Initial value:
= {
.name = "nat44-ei-in2out",
.vector_size = sizeof (u32),
.runtime_data_bytes = sizeof (nat44_ei_runtime_t),
.n_next_nodes = NAT44_EI_IN2OUT_N_NEXT,
.next_nodes = {
[NAT44_EI_IN2OUT_NEXT_DROP] = "error-drop",
[NAT44_EI_IN2OUT_NEXT_LOOKUP] = "ip4-lookup",
[NAT44_EI_IN2OUT_NEXT_SLOW_PATH] = "nat44-ei-in2out-slowpath",
[NAT44_EI_IN2OUT_NEXT_ICMP_ERROR] = "ip4-icmp-error",
[NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF] = "nat44-ei-in2out-hairpinning-handoff-ip4-lookup",
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_node)

Definition at line 1666 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_output_node

vlib_node_registration_t nat44_ei_in2out_output_node
Initial value:
= {
.name = "nat44-ei-in2out-output",
.vector_size = sizeof (u32),
.runtime_data_bytes = sizeof (nat44_ei_runtime_t),
.n_next_nodes = NAT44_EI_IN2OUT_N_NEXT,
.next_nodes = {
[NAT44_EI_IN2OUT_NEXT_DROP] = "error-drop",
[NAT44_EI_IN2OUT_NEXT_LOOKUP] = "interface-output",
[NAT44_EI_IN2OUT_NEXT_SLOW_PATH] = "nat44-ei-in2out-output-slowpath",
[NAT44_EI_IN2OUT_NEXT_ICMP_ERROR] = "ip4-icmp-error",
[NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF] = "nat44-ei-in2out-hairpinning-handoff-interface-output",
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_output_node)

Definition at line 1696 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_output_slowpath_node

vlib_node_registration_t nat44_ei_in2out_output_slowpath_node
Initial value:
= {
.name = "nat44-ei-in2out-output-slowpath",
.vector_size = sizeof (u32),
.runtime_data_bytes = sizeof (nat44_ei_runtime_t),
.n_next_nodes = NAT44_EI_IN2OUT_N_NEXT,
.next_nodes = {
[NAT44_EI_IN2OUT_NEXT_DROP] = "error-drop",
[NAT44_EI_IN2OUT_NEXT_LOOKUP] = "interface-output",
[NAT44_EI_IN2OUT_NEXT_SLOW_PATH] = "nat44-ei-in2out-output-slowpath",
[NAT44_EI_IN2OUT_NEXT_ICMP_ERROR] = "ip4-icmp-error",
[NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF] = "nat44-ei-in2out-hairpinning-handoff-interface-output",
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_output_slowpath_node)

Definition at line 1756 of file nat44_ei_in2out.c.

◆ nat44_ei_in2out_slowpath_node

vlib_node_registration_t nat44_ei_in2out_slowpath_node
Initial value:
= {
.name = "nat44-ei-in2out-slowpath",
.vector_size = sizeof (u32),
.runtime_data_bytes = sizeof (nat44_ei_runtime_t),
.n_next_nodes = NAT44_EI_IN2OUT_N_NEXT,
.next_nodes = {
[NAT44_EI_IN2OUT_NEXT_DROP] = "error-drop",
[NAT44_EI_IN2OUT_NEXT_LOOKUP] = "ip4-lookup",
[NAT44_EI_IN2OUT_NEXT_SLOW_PATH] = "nat44-ei-in2out-slowpath",
[NAT44_EI_IN2OUT_NEXT_ICMP_ERROR] = "ip4-icmp-error",
[NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF] = "nat44-ei-in2out-hairpinning-handoff-ip4-lookup",
},
}

(constructor) VLIB_REGISTER_NODE (nat44_ei_in2out_slowpath_node)

Definition at line 1726 of file nat44_ei_in2out.c.

◆ next_index

next_index = node->cached_next_index

Definition at line 1784 of file nat44_ei_in2out.c.

◆ nm

Definition at line 1785 of file nat44_ei_in2out.c.

◆ node

Definition at line 1660 of file nat44_ei_in2out.c.

◆ thread_index

u32 thread_index = vm->thread_index

Definition at line 1783 of file nat44_ei_in2out.c.

◆ vm

Definition at line 1660 of file nat44_ei_in2out.c.

nat44_ei_hairpinning_handoff_error_strings
static char * nat44_ei_hairpinning_handoff_error_strings[]
Definition: nat44_ei_hairpinning.h:17
format_nat44_ei_in2out_trace
static u8 * format_nat44_ei_in2out_trace(u8 *s, va_list *args)
Definition: nat44_ei_in2out.c:50
nat44_ei_in2out_node_fn_inline
static uword nat44_ei_in2out_node_fn_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_slow_path, int is_output_feature)
Definition: nat44_ei_in2out.c:917
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
NAT44_EI_IN2OUT_HAIRPINNING_FINISH_N_NEXT
@ NAT44_EI_IN2OUT_HAIRPINNING_FINISH_N_NEXT
Definition: nat44_ei_in2out.c:119
NAT44_EI_IN2OUT_NEXT_LOOKUP
@ NAT44_EI_IN2OUT_NEXT_LOOKUP
Definition: nat44_ei_in2out.c:107
NAT44_EI_IN2OUT_N_NEXT
@ NAT44_EI_IN2OUT_N_NEXT
Definition: nat44_ei_in2out.c:112
NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF
@ NAT44_EI_IN2OUT_NEXT_HAIRPINNING_HANDOFF
Definition: nat44_ei_in2out.c:111
nat44_ei_in2out_error_strings
static char * nat44_ei_in2out_error_strings[]
Definition: nat44_ei_in2out.c:99
NAT44_EI_IN2OUT_NEXT_SLOW_PATH
@ NAT44_EI_IN2OUT_NEXT_SLOW_PATH
Definition: nat44_ei_in2out.c:110
frame
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
Definition: nat44_ei_in2out.c:1661
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
format_nat44_ei_hairpinning_handoff_trace
static u8 * format_nat44_ei_hairpinning_handoff_trace(u8 *s, va_list *args)
Definition: nat44_ei_hairpinning.h:29
NAT44_EI_IN2OUT_HAIRPINNING_FINISH_NEXT_DROP
@ NAT44_EI_IN2OUT_HAIRPINNING_FINISH_NEXT_DROP
Definition: nat44_ei_in2out.c:117
nat44_ei_runtime_t
Definition: nat44_ei.h:304
foreach_nat44_ei_in2out_error
#define foreach_nat44_ei_in2out_error
Definition: nat44_ei_in2out.c:82
u32
unsigned int u32
Definition: types.h:88
NAT44_EI_IN2OUT_NEXT_DROP
@ NAT44_EI_IN2OUT_NEXT_DROP
Definition: nat44_ei_in2out.c:108
node
vlib_main_t vlib_node_runtime_t * node
Definition: nat44_ei_in2out.c:1660
format_nat44_ei_in2out_fast_trace
static u8 * format_nat44_ei_in2out_fast_trace(u8 *s, va_list *args)
Definition: nat44_ei_in2out.c:70
vm
vlib_main_t * vm
Definition: nat44_ei_in2out.c:1660
NAT44_EI_IN2OUT_HAIRPINNING_FINISH_NEXT_LOOKUP
@ NAT44_EI_IN2OUT_HAIRPINNING_FINISH_NEXT_LOOKUP
Definition: nat44_ei_in2out.c:118
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
NAT44_EI_IN2OUT_NEXT_ICMP_ERROR
@ NAT44_EI_IN2OUT_NEXT_ICMP_ERROR
Definition: nat44_ei_in2out.c:109