FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
lookup_context.c File Reference
+ Include dependency graph for lookup_context.c:

Go to the source code of this file.

Functions

static u8 acl_plugin_acl_exists (u32 acl_index)
 
static u32 get_acl_user_id (acl_main_t *am, char *user_module_name, char *val1_label, char *val2_label)
 
static int acl_user_id_valid (acl_main_t *am, u32 acl_user_id)
 
static int acl_lc_index_valid (acl_main_t *am, u32 lc_index)
 
static u32 acl_plugin_register_user_module (char *user_module_name, char *val1_label, char *val2_label)
 
static int acl_plugin_get_lookup_context_index (u32 acl_user_id, u32 val1, u32 val2)
 
static void lock_acl (acl_main_t *am, u32 acl, u32 lc_index)
 
static void lock_acl_vec (u32 lc_index, u32 *acls)
 
static void unlock_acl (acl_main_t *am, u32 acl, u32 lc_index)
 
static void unlock_acl_vec (u32 lc_index, u32 *acls)
 
static void apply_acl_vec (u32 lc_index, u32 *acls)
 
static void unapply_acl_vec (u32 lc_index, u32 *acls)
 
static void acl_plugin_put_lookup_context_index (u32 lc_index)
 
static int acl_plugin_set_acl_vec_for_context (u32 lc_index, u32 *acl_list)
 
void acl_plugin_lookup_context_notify_acl_change (u32 acl_num)
 
static void acl_plugin_fill_5tuple (u32 lc_index, vlib_buffer_t *b0, int is_ip6, int is_input, int is_l2_path, fa_5tuple_opaque_t *p5tuple_pkt)
 
static int acl_plugin_match_5tuple (u32 lc_index, fa_5tuple_opaque_t *pkt_5tuple, int is_ip6, u8 *r_action, u32 *r_acl_pos_p, u32 *r_acl_match_p, u32 *r_rule_match_p, u32 *trace_bitmap)
 
void acl_plugin_show_lookup_user (u32 user_index)
 
void acl_plugin_show_lookup_context (u32 lc_index)
 
void * acl_plugin_get_p_acl_main (void)
 
clib_error_tacl_plugin_methods_vtable_init (acl_plugin_methods_t *m)
 

Function Documentation

◆ acl_lc_index_valid()

static int acl_lc_index_valid ( acl_main_t am,
u32  lc_index 
)
static

Definition at line 63 of file lookup_context.c.

+ Here is the caller graph for this function:

◆ acl_plugin_acl_exists()

static u8 acl_plugin_acl_exists ( u32  acl_index)
static

Definition at line 25 of file lookup_context.c.

+ Here is the caller graph for this function:

◆ acl_plugin_fill_5tuple()

static void acl_plugin_fill_5tuple ( u32  lc_index,
vlib_buffer_t b0,
int  is_ip6,
int  is_input,
int  is_l2_path,
fa_5tuple_opaque_t p5tuple_pkt 
)
static

Definition at line 293 of file lookup_context.c.

+ Here is the call graph for this function:

◆ acl_plugin_get_lookup_context_index()

static int acl_plugin_get_lookup_context_index ( u32  acl_user_id,
u32  val1,
u32  val2 
)
static

Definition at line 98 of file lookup_context.c.

+ Here is the call graph for this function:

◆ acl_plugin_get_p_acl_main()

void* acl_plugin_get_p_acl_main ( void  )

Definition at line 362 of file lookup_context.c.

◆ acl_plugin_lookup_context_notify_acl_change()

void acl_plugin_lookup_context_notify_acl_change ( u32  acl_num)

Definition at line 275 of file lookup_context.c.

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

◆ acl_plugin_match_5tuple()

static int acl_plugin_match_5tuple ( u32  lc_index,
fa_5tuple_opaque_t pkt_5tuple,
int  is_ip6,
u8 r_action,
u32 r_acl_pos_p,
u32 r_acl_match_p,
u32 r_rule_match_p,
u32 trace_bitmap 
)
static

Definition at line 299 of file lookup_context.c.

+ Here is the call graph for this function:

◆ acl_plugin_methods_vtable_init()

clib_error_t* acl_plugin_methods_vtable_init ( acl_plugin_methods_t m)

Definition at line 367 of file lookup_context.c.

+ Here is the caller graph for this function:

◆ acl_plugin_put_lookup_context_index()

static void acl_plugin_put_lookup_context_index ( u32  lc_index)
static

Definition at line 190 of file lookup_context.c.

+ Here is the call graph for this function:

◆ acl_plugin_register_user_module()

static u32 acl_plugin_register_user_module ( char *  user_module_name,
char *  val1_label,
char *  val2_label 
)
static

Definition at line 77 of file lookup_context.c.

+ Here is the call graph for this function:

◆ acl_plugin_set_acl_vec_for_context()

static int acl_plugin_set_acl_vec_for_context ( u32  lc_index,
u32 acl_list 
)
static

Definition at line 218 of file lookup_context.c.

+ Here is the call graph for this function:

◆ acl_plugin_show_lookup_context()

void acl_plugin_show_lookup_context ( u32  lc_index)

Definition at line 329 of file lookup_context.c.

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

◆ acl_plugin_show_lookup_user()

void acl_plugin_show_lookup_user ( u32  user_index)

Definition at line 312 of file lookup_context.c.

+ Here is the caller graph for this function:

◆ acl_user_id_valid()

static int acl_user_id_valid ( acl_main_t am,
u32  acl_user_id 
)
static

Definition at line 54 of file lookup_context.c.

+ Here is the caller graph for this function:

◆ apply_acl_vec()

static void apply_acl_vec ( u32  lc_index,
u32 acls 
)
static

Definition at line 165 of file lookup_context.c.

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

◆ get_acl_user_id()

static u32 get_acl_user_id ( acl_main_t am,
char *  user_module_name,
char *  val1_label,
char *  val2_label 
)
static

Definition at line 36 of file lookup_context.c.

+ Here is the caller graph for this function:

◆ lock_acl()

static void lock_acl ( acl_main_t am,
u32  acl,
u32  lc_index 
)
static

Definition at line 125 of file lookup_context.c.

+ Here is the caller graph for this function:

◆ lock_acl_vec()

static void lock_acl_vec ( u32  lc_index,
u32 acls 
)
static

Definition at line 133 of file lookup_context.c.

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

◆ unapply_acl_vec()

static void unapply_acl_vec ( u32  lc_index,
u32 acls 
)
static

Definition at line 176 of file lookup_context.c.

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

◆ unlock_acl()

static void unlock_acl ( acl_main_t am,
u32  acl,
u32  lc_index 
)
static

Definition at line 143 of file lookup_context.c.

+ Here is the caller graph for this function:

◆ unlock_acl_vec()

static void unlock_acl_vec ( u32  lc_index,
u32 acls 
)
static

Definition at line 155 of file lookup_context.c.

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