Go to the source code of this file.
|
static u8 * | format_ip4_source_and_port_range_check_trace (u8 *s, va_list *va) |
|
static u32 | check_adj_port_range_x1 (ip_adjacency_t *adj, u16 dst_port, u32 next) |
|
static uword | ip4_source_and_port_range_check_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static uword | ip4_source_and_port_range_check (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
int | set_ip_source_and_port_range_check (vlib_main_t *vm, u32 *fib_index, u32 sw_if_index, u32 is_add) |
|
static clib_error_t * | set_ip_source_and_port_range_check_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
| VLIB_CLI_COMMAND (set_interface_ip_source_and_port_range_check_command, static) |
|
static u8 * | format_source_and_port_rc_adjacency (u8 *s, va_list *args) |
|
clib_error_t * | ip4_source_and_port_range_check_init (vlib_main_t *vm) |
|
int | add_port_range_adjacency (ip4_address_t *address, u32 length, u32 adj_index, u16 *low_ports, u16 *high_ports, u32 fib_index) |
|
int | remove_port_range_adjacency (ip4_address_t *address, u32 length, u32 adj_index, u16 *low_ports, u16 *high_ports, u32 fib_index) |
|
int | ip6_source_and_port_range_check_add_del (ip6_address_t *address, u32 length, u32 vrf_id, u16 *low_ports, u16 *high_ports, int is_add) |
|
int | ip4_source_and_port_range_check_add_del (ip4_address_t *address, u32 length, u32 vrf_id, u16 *low_ports, u16 *high_ports, int is_add) |
|
static clib_error_t * | ip_source_and_port_range_check_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | show_source_and_port_range_check_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
#define foreach_ip4_source_and_port_range_check_error |
Value:_(CHECK_FAIL, "ip4 source and port range check bad packets") \
_(CHECK_OK, "ip4 source and port range check good packets")
Definition at line 21 of file ip4_source_and_port_range_check.c.
static u8* format_ip4_source_and_port_range_check_trace |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
|
static |
static u8* format_source_and_port_rc_adjacency |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
int ip4_source_and_port_range_check_add_del |
( |
ip4_address_t * |
address, |
|
|
u32 |
length, |
|
|
u32 |
vrf_id, |
|
|
u16 * |
low_ports, |
|
|
u16 * |
high_ports, |
|
|
int |
is_add |
|
) |
| |
int ip6_source_and_port_range_check_add_del |
( |
ip6_address_t * |
address, |
|
|
u32 |
length, |
|
|
u32 |
vrf_id, |
|
|
u16 * |
low_ports, |
|
|
u16 * |
high_ports, |
|
|
int |
is_add |
|
) |
| |
int set_ip_source_and_port_range_check |
( |
vlib_main_t * |
vm, |
|
|
u32 * |
fib_index, |
|
|
u32 |
sw_if_index, |
|
|
u32 |
is_add |
|
) |
| |
VLIB_CLI_COMMAND |
( |
set_interface_ip_source_and_port_range_check_command |
, |
|
|
static |
|
|
) |
| |
char* ip4_source_and_port_range_check_error_strings[] |
|
static |
Initial value:= {
.name = "ip4-source-and-port-range-check",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static u8 * format_ip4_source_and_port_range_check_trace(u8 *s, va_list *va)
static uword ip4_source_and_port_range_check(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * ip4_source_and_port_range_check_error_strings[]
(constructor) VLIB_REGISTER_NODE (ip4_source_port_and_range_check)
Definition at line 19 of file ip4_source_and_port_range_check.c.
Initial value:= {
.path = "set ip source-and-port-range-check",
.short_help =
"set ip source-and-port-range-check <ip-addr>/<mask> [range <nn>-<nn> tcp-vrf <id>] [vrf <id>] [del]",
}
static clib_error_t * ip_source_and_port_range_check_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (ip_source_and_port_range_check_command)
Definition at line 1005 of file ip4_source_and_port_range_check.c.
Initial value:= {
.path = "show ip source-and-port-range-check",
.short_help =
"show ip source-and-port-range-check vrf <nn> <ip-addr> <port>",
}
static clib_error_t * show_source_and_port_range_check_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_source_and_port_range_check)
Definition at line 1106 of file ip4_source_and_port_range_check.c.