FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
tcp_syn_filter4.c File Reference
+ Include dependency graph for tcp_syn_filter4.c:

Go to the source code of this file.

Data Structures

struct  syn_filter4_runtime_t
 
struct  syn_filter4_trace_t
 

Macros

#define foreach_syn_filter_error
 

Enumerations

enum  syn_filter_error_t { SYN_FILTER_N_ERROR }
 
enum  syn_filter_next_t { SYN_FILTER_NEXT_DROP, SYN_FILTER_N_NEXT }
 

Functions

static u8format_syn_filter4_trace (u8 *s, va_list *args)
 
static uword syn_filter4_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (syn_filter4_node, syn_filter4_node_fn)
 
 VNET_FEATURE_INIT (syn_filter_4, static)
 
int syn_filter_enable_disable (u32 sw_if_index, int enable_disable)
 
static clib_error_tsyn_filter_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_node_registration_t syn_filter4_node
 (constructor) VLIB_REGISTER_NODE (syn_filter4_node) More...
 
static char * syn_filter4_error_strings []
 
vnet_feature_arc_registration_t vnet_feat_arc_ip4_local
 
static vlib_cli_command_t sr_content_command
 (constructor) VLIB_CLI_COMMAND (sr_content_command) More...
 

Macro Definition Documentation

◆ foreach_syn_filter_error

#define foreach_syn_filter_error
Value:
_(THROTTLED, "TCP SYN packet throttle drops") \
_(OK, "TCP SYN packets passed")

Definition at line 57 of file tcp_syn_filter4.c.

Enumeration Type Documentation

◆ syn_filter_error_t

Enumerator
SYN_FILTER_N_ERROR 

Definition at line 61 of file tcp_syn_filter4.c.

◆ syn_filter_next_t

Enumerator
SYN_FILTER_NEXT_DROP 
SYN_FILTER_N_NEXT 

Definition at line 75 of file tcp_syn_filter4.c.

Function Documentation

◆ format_syn_filter4_trace()

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

Definition at line 40 of file tcp_syn_filter4.c.

+ Here is the call graph for this function:

◆ syn_filter4_node_fn()

static uword syn_filter4_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 84 of file tcp_syn_filter4.c.

+ Here is the call graph for this function:

◆ syn_filter_enable_disable()

int syn_filter_enable_disable ( u32  sw_if_index,
int  enable_disable 
)

Definition at line 436 of file tcp_syn_filter4.c.

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

◆ syn_filter_enable_disable_command_fn()

static clib_error_t* syn_filter_enable_disable_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 477 of file tcp_syn_filter4.c.

+ Here is the call graph for this function:

◆ VLIB_NODE_FUNCTION_MULTIARCH()

VLIB_NODE_FUNCTION_MULTIARCH ( syn_filter4_node  ,
syn_filter4_node_fn   
)

◆ VNET_FEATURE_INIT()

VNET_FEATURE_INIT ( syn_filter_4  ,
static   
)

Variable Documentation

◆ sr_content_command

vlib_cli_command_t sr_content_command
static
Initial value:
=
{
.path = "ip syn filter",
.short_help = "ip syn filter <interface-name> [disable]",
}
static clib_error_t * syn_filter_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (sr_content_command)

Definition at line 531 of file tcp_syn_filter4.c.

◆ syn_filter4_error_strings

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

Definition at line 69 of file tcp_syn_filter4.c.

◆ syn_filter4_node

static vlib_node_registration_t syn_filter4_node
static
Initial value:
=
{
.function = syn_filter4_node_fn,
.name = "syn-filter-4",
.vector_size = sizeof (u32),
.format_trace = format_syn_filter4_trace,
.runtime_data_bytes = sizeof (syn_filter4_runtime_t),
.error_strings = syn_filter4_error_strings,
.n_next_nodes = SYN_FILTER_N_NEXT,
.next_nodes = {
[SYN_FILTER_NEXT_DROP] = "error-drop",
},
}
static uword syn_filter4_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_syn_filter4_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:62
static char * syn_filter4_error_strings[]

(constructor) VLIB_REGISTER_NODE (syn_filter4_node)

Definition at line 55 of file tcp_syn_filter4.c.

◆ vnet_feat_arc_ip4_local

vnet_feature_arc_registration_t vnet_feat_arc_ip4_local