FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
public_inlines.h File Reference
+ Include dependency graph for public_inlines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

u8 acl_plugin_acl_exists (u32 acl_index)
 
u32 acl_plugin_register_user_module (char *caller_module_string, char *val1_label, char *val2_label)
 
int acl_plugin_get_lookup_context_index (u32 acl_user_id, u32 val1, u32 val2)
 
void acl_plugin_put_lookup_context_index (u32 lc_index)
 
int acl_plugin_set_acl_vec_for_context (u32 lc_index, u32 *acl_list)
 
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)
 
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 void * get_ptr_to_offset (vlib_buffer_t *b0, int offset)
 
static int offset_within_packet (vlib_buffer_t *b0, int offset)
 
static void acl_fill_5tuple (acl_main_t *am, vlib_buffer_t *b0, int is_ip6, int is_input, int is_l2_path, fa_5tuple_t *p5tuple_pkt)
 
static void acl_plugin_fill_5tuple_inline (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 fa_acl_match_addr (ip46_address_t *addr1, ip46_address_t *addr2, int prefixlen, int is_ip6)
 
static int fa_acl_match_port (u16 port, u16 port_first, u16 port_last, int is_ip6)
 
static int single_acl_match_5tuple (acl_main_t *am, u32 acl_index, fa_5tuple_t *pkt_5tuple, int is_ip6, u8 *r_action, u32 *r_acl_match_p, u32 *r_rule_match_p, u32 *trace_bitmap)
 
static int acl_plugin_single_acl_match_5tuple (u32 acl_index, fa_5tuple_t *pkt_5tuple, int is_ip6, u8 *r_action, u32 *r_acl_match_p, u32 *r_rule_match_p, u32 *trace_bitmap)
 
static int linear_multi_acl_match_5tuple (u32 lc_index, fa_5tuple_t *pkt_5tuple, int is_ip6, u8 *r_action, u32 *acl_pos_p, u32 *acl_match_p, u32 *rule_match_p, u32 *trace_bitmap)
 
static int match_portranges (acl_main_t *am, fa_5tuple_t *match, u32 index)
 
static u32 multi_acl_match_get_applied_ace_index (acl_main_t *am, fa_5tuple_t *match)
 
static int hash_multi_acl_match_5tuple (u32 lc_index, fa_5tuple_t *pkt_5tuple, int is_ip6, u8 *action, u32 *acl_pos_p, u32 *acl_match_p, u32 *rule_match_p, u32 *trace_bitmap)
 
static int acl_plugin_match_5tuple_inline (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)
 

Function Documentation

static void acl_fill_5tuple ( acl_main_t am,
vlib_buffer_t b0,
int  is_ip6,
int  is_input,
int  is_l2_path,
fa_5tuple_t p5tuple_pkt 
)
inlinestatic

Definition at line 179 of file public_inlines.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 acl_plugin_acl_exists ( u32  acl_index)

Definition at line 110 of file acl.c.

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 
)

Definition at line 277 of file lookup_context.c.

+ Here is the call graph for this function:

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

Definition at line 353 of file public_inlines.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 84 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 
)

Definition at line 283 of file lookup_context.c.

+ Here is the call graph for this function:

static int acl_plugin_match_5tuple_inline ( 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 
)
inlinestatic

Definition at line 720 of file public_inlines.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void acl_plugin_put_lookup_context_index ( u32  lc_index)

Definition at line 174 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 acl_plugin_register_user_module ( char *  caller_module_string,
char *  val1_label,
char *  val2_label 
)

Definition at line 67 of file lookup_context.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int acl_plugin_set_acl_vec_for_context ( u32  lc_index,
u32 acl_list 
)

Definition at line 202 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_single_acl_match_5tuple ( u32  acl_index,
fa_5tuple_t pkt_5tuple,
int  is_ip6,
u8 r_action,
u32 r_acl_match_p,
u32 r_rule_match_p,
u32 trace_bitmap 
)
inlinestatic

Definition at line 535 of file public_inlines.h.

+ Here is the call graph for this function:

static int fa_acl_match_addr ( ip46_address_t *  addr1,
ip46_address_t *  addr2,
int  prefixlen,
int  is_ip6 
)
inlinestatic

Definition at line 363 of file public_inlines.h.

+ Here is the caller graph for this function:

static int fa_acl_match_port ( u16  port,
u16  port_first,
u16  port_last,
int  is_ip6 
)
inlinestatic

Definition at line 401 of file public_inlines.h.

+ Here is the caller graph for this function:

static void* get_ptr_to_offset ( vlib_buffer_t b0,
int  offset 
)
inlinestatic

Definition at line 165 of file public_inlines.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int hash_multi_acl_match_5tuple ( u32  lc_index,
fa_5tuple_t pkt_5tuple,
int  is_ip6,
u8 action,
u32 acl_pos_p,
u32 acl_match_p,
u32 rule_match_p,
u32 trace_bitmap 
)
inlinestatic

Definition at line 698 of file public_inlines.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int linear_multi_acl_match_5tuple ( u32  lc_index,
fa_5tuple_t pkt_5tuple,
int  is_ip6,
u8 r_action,
u32 acl_pos_p,
u32 acl_match_p,
u32 rule_match_p,
u32 trace_bitmap 
)
inlinestatic

Definition at line 545 of file public_inlines.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int match_portranges ( acl_main_t am,
fa_5tuple_t match,
u32  index 
)
inlinestatic

Definition at line 591 of file public_inlines.h.

+ Here is the caller graph for this function:

static u32 multi_acl_match_get_applied_ace_index ( acl_main_t am,
fa_5tuple_t match 
)
inlinestatic

Definition at line 610 of file public_inlines.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int offset_within_packet ( vlib_buffer_t b0,
int  offset 
)
inlinestatic

Definition at line 172 of file public_inlines.h.

+ Here is the caller graph for this function:

static int single_acl_match_5tuple ( acl_main_t am,
u32  acl_index,
fa_5tuple_t pkt_5tuple,
int  is_ip6,
u8 r_action,
u32 r_acl_match_p,
u32 r_rule_match_p,
u32 trace_bitmap 
)
inlinestatic

Definition at line 407 of file public_inlines.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: