Go to the source code of this file.
|
u8 * | format_kp_trace (u8 *s, va_list *args) |
|
u8 * | format_kp_nat_trace (u8 *s, va_list *args) |
|
kp_hash_t * | kp_get_sticky_table (u32 thread_index) |
|
u64 | kp_node_get_other_ports4 (ip4_header_t *ip40) |
|
u64 | kp_node_get_other_ports6 (ip6_header_t *ip60) |
|
static_always_inline u32 | kp_node_get_hash (vlib_buffer_t *p, u8 is_input_v4) |
|
static_always_inline uword | kp_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_input_v4, u8 is_nat_v4) |
|
u8 * | format_nodeport_kp_trace (u8 *s, va_list *args) |
|
static uword | kp_nodeport_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_input_v4) |
|
int | kp_nat4_mapping_match (kp_main_t *kpm, kp_snat4_key_t match, kp_snat4_key_t *mapping) |
| Match NAT4 static mapping. More...
|
|
static uword | kp_nat4_in2out_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | kp6_nat6_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | kp6_nat4_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | kp4_nat6_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | kp4_nat4_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | kp4_nodeport_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | kp6_nodeport_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VNET_FEATURE_INIT (kp_nat4_in2out_node_fn, static) |
|
Value:_(NONE, "no error") \
_(PROTO_NOT_SUPPORTED, "protocol not supported")
Definition at line 22 of file kp_node.c.
u8* format_kp_nat_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
u8* format_kp_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
u8* format_nodeport_kp_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
Match NAT4 static mapping.
- Parameters
-
sm | NAT main. |
match | Address and port to match. |
mapping | External or local address and port of the matched mapping. |
- Returns
- 0 if match found otherwise 1.
Definition at line 473 of file kp_node.c.
Initial value:=
{
.name = "kp4-nat4",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
static char * kp_error_strings[]
u8 * format_kp_trace(u8 *s, va_list *args)
static uword kp4_nat4_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (kp4_nat4_node)
Definition at line 741 of file kp_node.c.
Initial value:=
{
.name = "kp4-nat6",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
static uword kp4_nat6_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * kp_error_strings[]
u8 * format_kp_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (kp4_nat6_node)
Definition at line 724 of file kp_node.c.
Initial value:=
{
.name = "kp4-nodeport",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
static uword kp4_nodeport_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
u8 * format_nodeport_kp_trace(u8 *s, va_list *args)
static char * kp_error_strings[]
(constructor) VLIB_REGISTER_NODE (kp4_nodeport_node)
Definition at line 774 of file kp_node.c.
Initial value:=
{
.name = "kp6-nat4",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
static char * kp_error_strings[]
u8 * format_kp_trace(u8 *s, va_list *args)
static uword kp6_nat4_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (kp6_nat4_node)
Definition at line 707 of file kp_node.c.
Initial value:=
{
.name = "kp6-nat6",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
static char * kp_error_strings[]
u8 * format_kp_trace(u8 *s, va_list *args)
static uword kp6_nat6_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (kp6_nat6_node)
Definition at line 690 of file kp_node.c.
Initial value:=
{
.name = "kp6-nodeport",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
u8 * format_nodeport_kp_trace(u8 *s, va_list *args)
static char * kp_error_strings[]
static uword kp6_nodeport_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (kp6_nodeport_node)
Definition at line 795 of file kp_node.c.
Initial value:= {
#define _(sym,string)
}
Definition at line 33 of file kp_node.c.
Initial value:=
{
.name = "kp-nat4-in2out",
.vector_size =
sizeof (
u32),
.next_nodes =
{
},
}
static uword kp_nat4_in2out_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
u8 * format_kp_nat_trace(u8 *s, va_list *args)
static char * kp_error_strings[]
(constructor) VLIB_REGISTER_NODE (kp_nat4_in2out_node)
Definition at line 823 of file kp_node.c.