FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
snort.h File Reference
+ Include dependency graph for snort.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  snort_qpair_t
 
struct  snort_instance_t
 
struct  snort_client_msg_queue_elt
 
struct  snort_client_t
 
struct  snort_per_thread_data_t
 
struct  snort_main_t
 

Macros

#define SNORT_ENQ_NEXT_NODES
 

Enumerations

enum  snort_enq_next_t { SNORT_ENQ_NEXT_DROP, SNORT_ENQ_N_NEXT_NODES }
 

Functions

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_freelist_init (u32 *fl)
 

Variables

snort_main_t snort_main
 
vlib_node_registration_t snort_enq_node
 (constructor) VLIB_REGISTER_NODE (snort_enq_node) More...
 
vlib_node_registration_t snort_deq_node
 (constructor) VLIB_REGISTER_NODE (snort_deq_node) More...
 

Macro Definition Documentation

◆ SNORT_ENQ_NEXT_NODES

#define SNORT_ENQ_NEXT_NODES
Value:
{ \
[SNORT_ENQ_NEXT_DROP] = "error-drop", \
}

Definition at line 93 of file snort.h.

Enumeration Type Documentation

◆ snort_enq_next_t

Enumerator
SNORT_ENQ_NEXT_DROP 
SNORT_ENQ_N_NEXT_NODES 

Definition at line 87 of file snort.h.

Function Documentation

◆ snort_freelist_init()

static void snort_freelist_init ( u32 fl)
inlinestatic

Definition at line 107 of file snort.h.

+ Here is the caller 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_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:

Variable Documentation

◆ snort_deq_node

vlib_node_registration_t snort_deq_node

(constructor) VLIB_REGISTER_NODE (snort_deq_node)

Definition at line 354 of file dequeue.c.

◆ snort_enq_node

vlib_node_registration_t snort_enq_node

(constructor) VLIB_REGISTER_NODE (snort_enq_node)

Definition at line 214 of file enqueue.c.

◆ snort_main

snort_main_t snort_main

Definition at line 12 of file main.c.

SNORT_ENQ_NEXT_DROP
@ SNORT_ENQ_NEXT_DROP
Definition: snort.h:89