Go to the source code of this file.
|
u8 * | format_lb_trace (u8 *s, va_list *args) |
|
u8 * | format_lb_nat_trace (u8 *s, va_list *args) |
|
lb_hash_t * | lb_get_sticky_table (u32 thread_index) |
|
u64 | lb_node_get_other_ports4 (ip4_header_t *ip40) |
|
u64 | lb_node_get_other_ports6 (ip6_header_t *ip60) |
|
static_always_inline u32 | lb_node_get_hash (vlib_buffer_t *p, u8 is_input_v4) |
|
static_always_inline uword | lb_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_input_v4, lb_encap_type_t encap_type) |
|
u8 * | format_nodeport_lb_trace (u8 *s, va_list *args) |
|
static uword | lb_nodeport_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_input_v4) |
|
int | lb_nat44_mapping_match (lb_main_t *lbm, lb_snat4_key_t *match, u32 *index) |
| Match NAT44 static mapping. More...
|
|
int | lb_nat66_mapping_match (lb_main_t *lbm, lb_snat6_key_t *match, u32 *index) |
| Match NAT66 static mapping. More...
|
|
static uword | lb_nat_in2out_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 is_nat4) |
|
static uword | lb6_gre6_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb6_gre4_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb4_gre6_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb4_gre4_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb4_l3dsr_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb6_nat6_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb4_nat4_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb_nat4_in2out_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb_nat6_in2out_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb4_nodeport_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | lb6_nodeport_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VNET_FEATURE_INIT (lb_nat4_in2out_node_fn, static) |
|
| VNET_FEATURE_INIT (lb_nat6_in2out_node_fn, static) |
|
Value:_(NONE, "no error") \
_(PROTO_NOT_SUPPORTED, "protocol not supported")
Definition at line 22 of file node.c.
u8* format_lb_nat_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
u8* format_lb_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
u8* format_nodeport_lb_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
Match NAT44 static mapping.
- Parameters
-
sm | NAT main. |
match | Address and port to match. |
index | index to the pool. |
- Returns
- 0 if match found, otherwise -1.
Definition at line 632 of file node.c.
Match NAT66 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 658 of file node.c.
Initial value:=
{
.name = "lb4-gre4",
.vector_size =
sizeof(
u32),
.next_nodes =
}
u8 * format_lb_trace(u8 *s, va_list *args)
static char * lb_error_strings[]
static uword lb4_gre4_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (lb4_gre4_node)
Definition at line 987 of file node.c.
Initial value:=
{
.name = "lb4-gre6",
.vector_size =
sizeof(
u32),
.next_nodes =
}
u8 * format_lb_trace(u8 *s, va_list *args)
static uword lb4_gre6_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * lb_error_strings[]
(constructor) VLIB_REGISTER_NODE (lb4_gre6_node)
Definition at line 974 of file node.c.
Initial value:=
{
.name = "lb4-l3dsr",
.vector_size =
sizeof(
u32),
.next_nodes =
}
u8 * format_lb_trace(u8 *s, va_list *args)
static uword lb4_l3dsr_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * lb_error_strings[]
(constructor) VLIB_REGISTER_NODE (lb4_l3dsr_node)
Definition at line 1000 of file node.c.
Initial value:=
{
.name = "lb4-nat4",
.vector_size =
sizeof(
u32),
.next_nodes =
}
u8 * format_lb_trace(u8 *s, va_list *args)
static uword lb4_nat4_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * lb_error_strings[]
(constructor) VLIB_REGISTER_NODE (lb4_nat4_node)
Definition at line 1026 of file node.c.
Initial value:=
{
.name = "lb4-nodeport",
.vector_size =
sizeof(
u32),
.next_nodes =
{
},
}
static uword lb4_nodeport_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
u8 * format_nodeport_lb_trace(u8 *s, va_list *args)
static char * lb_error_strings[]
(constructor) VLIB_REGISTER_NODE (lb4_nodeport_node)
Definition at line 1053 of file node.c.
Initial value:=
{
.name = "lb6-gre4",
.vector_size =
sizeof(
u32),
.next_nodes =
}
u8 * format_lb_trace(u8 *s, va_list *args)
static uword lb6_gre4_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * lb_error_strings[]
(constructor) VLIB_REGISTER_NODE (lb6_gre4_node)
Definition at line 961 of file node.c.
Initial value:=
{
.name = "lb6-gre6",
.vector_size =
sizeof(
u32),
.next_nodes =
}
u8 * format_lb_trace(u8 *s, va_list *args)
static char * lb_error_strings[]
static uword lb6_gre6_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (lb6_gre6_node)
Definition at line 949 of file node.c.
Initial value:=
{
.name = "lb6-nat6",
.vector_size =
sizeof(
u32),
.next_nodes =
}
u8 * format_lb_trace(u8 *s, va_list *args)
static uword lb6_nat6_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * lb_error_strings[]
(constructor) VLIB_REGISTER_NODE (lb6_nat6_node)
Definition at line 1013 of file node.c.
Initial value:=
{
.name = "lb6-nodeport",
.vector_size =
sizeof(
u32),
.next_nodes =
{
},
}
u8 * format_nodeport_lb_trace(u8 *s, va_list *args)
static char * lb_error_strings[]
static uword lb6_nodeport_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (lb6_nodeport_node)
Definition at line 1069 of file node.c.
Initial value:=
{
#define _(sym,string)
}
Definition at line 34 of file node.c.
Initial value:=
{
.name = "lb-nat4-in2out",
.vector_size =
sizeof(
u32),
.next_nodes =
{
},
}
u8 * format_lb_nat_trace(u8 *s, va_list *args)
static uword lb_nat4_in2out_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * lb_error_strings[]
(constructor) VLIB_REGISTER_NODE (lb_nat4_in2out_node)
Definition at line 1092 of file node.c.
Initial value:=
{
.name = "lb-nat6-in2out",
.vector_size =
sizeof(
u32),
.next_nodes =
{
},
}
static uword lb_nat6_in2out_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
u8 * format_lb_nat_trace(u8 *s, va_list *args)
static char * lb_error_strings[]
(constructor) VLIB_REGISTER_NODE (lb_nat6_in2out_node)
Definition at line 1115 of file node.c.