Go to the source code of this file.
|
static u8 * | format_snat_out2in_trace (u8 *s, va_list *args) |
|
static u8 * | format_snat_out2in_fast_trace (u8 *s, va_list *args) |
|
static u8 * | format_snat_out2in_worker_handoff_trace (u8 *s, va_list *args) |
|
static snat_session_t * | create_session_for_static_mapping (snat_main_t *sm, vlib_buffer_t *b0, snat_session_key_t in2out, snat_session_key_t out2in, vlib_node_runtime_t *node, u32 cpu_index) |
| Create session for static mapping. More...
|
|
static u32 | icmp_out2in_slow_path (snat_main_t *sm, 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 cpu_index) |
|
static uword | snat_out2in_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (snat_out2in_node, snat_out2in_node_fn) |
|
static uword | snat_out2in_worker_handoff_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (snat_out2in_worker_handoff_node, snat_out2in_worker_handoff_fn) |
|
static u32 | icmp_out2in_fast (snat_main_t *sm, vlib_buffer_t *b0, ip4_header_t *ip0, icmp46_header_t *icmp0, u32 sw_if_index0, vlib_node_runtime_t *node, u32 next0, u32 rx_fib_index0) |
|
static uword | snat_out2in_fast_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (snat_out2in_fast_node, snat_out2in_fast_node_fn) |
|
#define foreach_snat_out2in_error |
Value:_(UNSUPPORTED_PROTOCOL, "Unsupported protocol") \
_(OUT2IN_PACKETS, "Good out2in packets processed") \
_(BAD_ICMP_TYPE, "icmp type not echo-reply") \
_(NO_TRANSLATION, "No translation")
Definition at line 82 of file out2in.c.
Enumerator |
---|
SNAT_OUT2IN_N_ERROR |
|
Definition at line 88 of file out2in.c.
Enumerator |
---|
SNAT_OUT2IN_NEXT_DROP |
|
SNAT_OUT2IN_NEXT_LOOKUP |
|
SNAT_OUT2IN_N_NEXT |
|
Definition at line 101 of file out2in.c.
Create session for static mapping.
Create NAT session initiated by host from external network with static mapping.
- Parameters
-
sm | SNAT main. |
b0 | Vlib buffer. |
in2out | In2out SNAT session key. |
out2in | Out2in SNAT session key. |
node | Vlib node. |
- Returns
- SNAT session if successfully created otherwise 0.
Definition at line 122 of file out2in.c.
static u8* format_snat_out2in_fast_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_snat_out2in_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_snat_out2in_worker_handoff_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
char* snat_out2in_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_snat_out2in_error
Definition at line 95 of file out2in.c.
Initial value:= {
.name = "snat-out2in-fast",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static u8 * format_snat_out2in_fast_trace(u8 *s, va_list *args)
static char * snat_out2in_error_strings[]
static uword snat_out2in_fast_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (snat_out2in_fast_node)
Definition at line 79 of file out2in.c.
Initial value:= {
.name = "snat-out2in",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static char * snat_out2in_error_strings[]
static u8 * format_snat_out2in_trace(u8 *s, va_list *args)
static uword snat_out2in_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (snat_out2in_node)
Definition at line 78 of file out2in.c.
Initial value:= {
.name = "snat-out2in-worker-handoff",
.vector_size =
sizeof (
u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword snat_out2in_worker_handoff_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_snat_out2in_worker_handoff_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (snat_out2in_worker_handoff_node)
Definition at line 80 of file out2in.c.