FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
main.c File Reference
+ Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define log_debug(fmt, ...)   vlib_log_debug (snort_log.class, fmt, __VA_ARGS__)
 
#define log_err(fmt, ...)   vlib_log_err (snort_log.class, fmt, __VA_ARGS__)
 

Functions

 VLIB_REGISTER_LOG_CLASS (snort_log, static)
 
static void snort_client_disconnect (clib_file_t *uf)
 
static snort_instance_tsnort_get_instance_by_name (char *name)
 
static clib_error_tsnort_conn_fd_read_ready (clib_file_t *uf)
 
static clib_error_tsnort_conn_fd_write_ready (clib_file_t *uf)
 
clib_error_tsnort_conn_fd_error (clib_file_t *uf)
 
static clib_error_tsnort_deq_ready (clib_file_t *uf)
 
static clib_error_tsnort_conn_fd_accept_ready (clib_file_t *uf)
 
static clib_error_tsnort_listener_init (vlib_main_t *vm)
 
clib_error_tsnort_instance_create (vlib_main_t *vm, char *name, u8 log2_queue_sz, u8 drop_on_disconnect)
 
clib_error_tsnort_interface_enable_disable (vlib_main_t *vm, char *instance_name, u32 sw_if_index, int is_enable)
 
clib_error_tsnort_set_node_mode (vlib_main_t *vm, u32 mode)
 
static void snort_set_default_socket (snort_main_t *sm, u8 *socket_name)
 
static clib_error_tsnort_init (vlib_main_t *vm)
 
 VLIB_PLUGIN_REGISTER ()
 
 VNET_FEATURE_INIT (snort_enq, static)
 

Variables

snort_main_t snort_main
 

Macro Definition Documentation

◆ log_debug

#define log_debug (   fmt,
  ... 
)    vlib_log_debug (snort_log.class, fmt, __VA_ARGS__)

Definition at line 19 of file main.c.

◆ log_err

#define log_err (   fmt,
  ... 
)    vlib_log_err (snort_log.class, fmt, __VA_ARGS__)

Definition at line 20 of file main.c.

Function Documentation

◆ snort_client_disconnect()

static void snort_client_disconnect ( clib_file_t uf)
static

Definition at line 23 of file main.c.

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

◆ snort_conn_fd_accept_ready()

static clib_error_t* snort_conn_fd_accept_ready ( clib_file_t uf)
static

Definition at line 209 of file main.c.

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

◆ snort_conn_fd_error()

clib_error_t* snort_conn_fd_error ( clib_file_t uf)

Definition at line 185 of file main.c.

+ Here is the caller graph for this function:

◆ snort_conn_fd_read_ready()

static clib_error_t* snort_conn_fd_read_ready ( clib_file_t uf)
static

Definition at line 62 of file main.c.

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

◆ snort_conn_fd_write_ready()

static clib_error_t* snort_conn_fd_write_ready ( clib_file_t uf)
static

Definition at line 168 of file main.c.

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

◆ snort_deq_ready()

static clib_error_t* snort_deq_ready ( clib_file_t uf)
static

Definition at line 192 of file main.c.

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

◆ snort_get_instance_by_name()

static snort_instance_t* snort_get_instance_by_name ( char *  name)
static

Definition at line 50 of file main.c.

+ Here is the caller graph for this function:

◆ snort_init()

static clib_error_t* snort_init ( vlib_main_t vm)
static

Definition at line 490 of file main.c.

+ Here is the call graph for this function:

◆ snort_instance_create()

clib_error_t* snort_instance_create ( vlib_main_t vm,
char *  name,
u8  log2_queue_sz,
u8  drop_on_disconnect 
)

Definition at line 275 of file main.c.

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

◆ snort_interface_enable_disable()

clib_error_t* snort_interface_enable_disable ( vlib_main_t vm,
char *  instance_name,
u32  sw_if_index,
int  is_enable 
)

Definition at line 403 of file main.c.

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

◆ snort_listener_init()

static clib_error_t* snort_listener_init ( vlib_main_t vm)
static

Definition at line 241 of file main.c.

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

◆ snort_set_default_socket()

static void snort_set_default_socket ( snort_main_t sm,
u8 socket_name 
)
static

Definition at line 476 of file main.c.

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

◆ snort_set_node_mode()

clib_error_t* snort_set_node_mode ( vlib_main_t vm,
u32  mode 
)

Definition at line 465 of file main.c.

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

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

◆ VLIB_REGISTER_LOG_CLASS()

VLIB_REGISTER_LOG_CLASS ( snort_log  ,
static   
)

◆ VNET_FEATURE_INIT()

VNET_FEATURE_INIT ( snort_enq  ,
static   
)

Variable Documentation

◆ snort_main

snort_main_t snort_main

Definition at line 12 of file main.c.