FD.io VPP  v19.04-6-g6f05f72
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

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:

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:

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 287 of file lookup_context.c.

+ Here is the call graph for this function:

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

Definition at line 94 of file lookup_context.c.

+ Here is the call graph for this function:

void* acl_plugin_get_p_acl_main ( void  )

Definition at line 356 of file lookup_context.c.

void acl_plugin_lookup_context_notify_acl_change ( u32  acl_num)

Definition at line 269 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 293 of file lookup_context.c.

+ Here is the call graph for this function:

clib_error_t* acl_plugin_methods_vtable_init ( acl_plugin_methods_t m)

Definition at line 361 of file lookup_context.c.

+ Here is the caller graph for this function:

static void acl_plugin_put_lookup_context_index ( u32  lc_index)
static

Definition at line 184 of file lookup_context.c.

+ Here is the call graph for this function:

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:

static int acl_plugin_set_acl_vec_for_context ( u32  lc_index,
u32 acl_list 
)
static

Definition at line 212 of file lookup_context.c.

+ Here is the call graph for this function:

void acl_plugin_show_lookup_context ( u32  lc_index)

Definition at line 323 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void acl_plugin_show_lookup_user ( u32  user_index)

Definition at line 306 of file lookup_context.c.

+ Here is the caller graph for this function:

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:

static void apply_acl_vec ( u32  lc_index,
u32 acls 
)
static

Definition at line 159 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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

Definition at line 119 of file lookup_context.c.

+ Here is the caller graph for this function:

static void lock_acl_vec ( u32  lc_index,
u32 acls 
)
static

Definition at line 127 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unapply_acl_vec ( u32  lc_index,
u32 acls 
)
static

Definition at line 170 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 137 of file lookup_context.c.

+ Here is the caller graph for this function:

static void unlock_acl_vec ( u32  lc_index,
u32 acls 
)
static

Definition at line 149 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: