FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
session_rules_table.c File Reference
+ Include dependency graph for session_rules_table.c:

Go to the source code of this file.

Functions

u32 session_rule_tag_key_index (u32 ri, u8 is_ip4)
 
void session_rule_tag_key_index_parse (u32 rti_key, u32 *ri, u8 *is_ip4)
 
u8session_rules_table_rule_tag (session_rules_table_t *srt, u32 ri, u8 is_ip4)
 
void session_rules_table_del_tag (session_rules_table_t *srt, u8 *tag, u8 is_ip4)
 
void session_rules_table_add_tag (session_rules_table_t *srt, u8 *tag, u32 rule_index, u8 is_ip4)
 
u32 session_rules_table_rule_for_tag (session_rules_table_t *srt, u8 *tag)
 
static void fib_pref_normalize (fib_prefix_t *pref)
 
u8format_session_rule4 (u8 *s, va_list *args)
 
u8format_session_rule6 (u8 *s, va_list *args)
 
void * session_rules_table_get (session_rules_table_t *srt, u8 fib_proto)
 
int rule_cmp_16 (mma_rule_16_t *rule1, mma_rule_16_t *rule2)
 
int rule_cmp_40 (mma_rule_40_t *rule1, mma_rule_40_t *rule2)
 
void session_rules_table_init_rule_16 (mma_rule_16_t *rule, fib_prefix_t *lcl, u16 lcl_port, fib_prefix_t *rmt, u16 rmt_port)
 
void session_rules_table_init_rule_40 (mma_rule_40_t *rule, fib_prefix_t *lcl, u16 lcl_port, fib_prefix_t *rmt, u16 rmt_port)
 
mma_rule_16_t * session_rules_table_alloc_rule_16 (mma_rules_table_16_t *srt, fib_prefix_t *lcl, u16 lcl_port, fib_prefix_t *rmt, u16 rmt_port)
 
mma_rule_40_t * session_rules_table_alloc_rule_40 (mma_rules_table_40_t *srt, fib_prefix_t *lcl, u16 lcl_port, fib_prefix_t *rmt, u16 rmt_port)
 
u32 session_rules_table_lookup_rule4 (session_rules_table_t *srt, ip4_address_t *lcl_ip, ip4_address_t *rmt_ip, u16 lcl_port, u16 rmt_port)
 
u32 session_rules_table_lookup4 (session_rules_table_t *srt, ip4_address_t *lcl_ip, ip4_address_t *rmt_ip, u16 lcl_port, u16 rmt_port)
 
u32 session_rules_table_lookup_rule6 (session_rules_table_t *srt, ip6_address_t *lcl_ip, ip6_address_t *rmt_ip, u16 lcl_port, u16 rmt_port)
 
u32 session_rules_table_lookup6 (session_rules_table_t *srt, ip6_address_t *lcl_ip, ip6_address_t *rmt_ip, u16 lcl_port, u16 rmt_port)
 
int session_rules_table_add_del (session_rules_table_t *srt, session_rule_table_add_del_args_t *args)
 Add/delete session rule. More...
 
void session_rules_table_init (session_rules_table_t *srt)
 
void session_rules_table_show_rule (vlib_main_t *vm, session_rules_table_t *srt, ip46_address_t *lcl_ip, u16 lcl_port, ip46_address_t *rmt_ip, u16 rmt_port, u8 is_ip4)
 
void session_rules_table_cli_dump (vlib_main_t *vm, session_rules_table_t *srt, u8 fib_proto)
 

Function Documentation

static void fib_pref_normalize ( fib_prefix_t pref)
static

Definition at line 112 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_session_rule4 ( u8 s,
va_list *  args 
)

Definition at line 121 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_session_rule6 ( u8 s,
va_list *  args 
)

Definition at line 155 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int rule_cmp_16 ( mma_rule_16_t *  rule1,
mma_rule_16_t *  rule2 
)

Definition at line 199 of file session_rules_table.c.

+ Here is the caller graph for this function:

int rule_cmp_40 ( mma_rule_40_t *  rule1,
mma_rule_40_t *  rule2 
)

Definition at line 217 of file session_rules_table.c.

+ Here is the caller graph for this function:

u32 session_rule_tag_key_index ( u32  ri,
u8  is_ip4 
)

Definition at line 24 of file session_rules_table.c.

+ Here is the caller graph for this function:

void session_rule_tag_key_index_parse ( u32  rti_key,
u32 ri,
u8 is_ip4 
)

Definition at line 30 of file session_rules_table.c.

int session_rules_table_add_del ( session_rules_table_t srt,
session_rule_table_add_del_args_t args 
)

Add/delete session rule.

Parameters
srttable where rule should be added
argsrule arguments
Returns
0 if success, clib_error_t error otherwise

Definition at line 392 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void session_rules_table_add_tag ( session_rules_table_t srt,
u8 tag,
u32  rule_index,
u8  is_ip4 
)

Definition at line 82 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

mma_rule_16_t* session_rules_table_alloc_rule_16 ( mma_rules_table_16_t *  srt,
fib_prefix_t lcl,
u16  lcl_port,
fib_prefix_t rmt,
u16  rmt_port 
)

Definition at line 294 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

mma_rule_40_t* session_rules_table_alloc_rule_40 ( mma_rules_table_40_t *  srt,
fib_prefix_t lcl,
u16  lcl_port,
fib_prefix_t rmt,
u16  rmt_port 
)

Definition at line 305 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void session_rules_table_cli_dump ( vlib_main_t vm,
session_rules_table_t srt,
u8  fib_proto 
)

Definition at line 591 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void session_rules_table_del_tag ( session_rules_table_t srt,
u8 tag,
u8  is_ip4 
)

Definition at line 53 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* session_rules_table_get ( session_rules_table_t srt,
u8  fib_proto 
)

Definition at line 189 of file session_rules_table.c.

+ Here is the caller graph for this function:

void session_rules_table_init ( session_rules_table_t srt)

Definition at line 517 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void session_rules_table_init_rule_16 ( mma_rule_16_t *  rule,
fib_prefix_t lcl,
u16  lcl_port,
fib_prefix_t rmt,
u16  rmt_port 
)

Definition at line 238 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void session_rules_table_init_rule_40 ( mma_rule_40_t *  rule,
fib_prefix_t lcl,
u16  lcl_port,
fib_prefix_t rmt,
u16  rmt_port 
)

Definition at line 265 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 session_rules_table_lookup4 ( session_rules_table_t srt,
ip4_address_t lcl_ip,
ip4_address_t rmt_ip,
u16  lcl_port,
u16  rmt_port 
)

Definition at line 334 of file session_rules_table.c.

+ Here is the caller graph for this function:

u32 session_rules_table_lookup6 ( session_rules_table_t srt,
ip6_address_t lcl_ip,
ip6_address_t rmt_ip,
u16  lcl_port,
u16  rmt_port 
)

Definition at line 368 of file session_rules_table.c.

+ Here is the caller graph for this function:

u32 session_rules_table_lookup_rule4 ( session_rules_table_t srt,
ip4_address_t lcl_ip,
ip4_address_t rmt_ip,
u16  lcl_port,
u16  rmt_port 
)

Definition at line 316 of file session_rules_table.c.

+ Here is the caller graph for this function:

u32 session_rules_table_lookup_rule6 ( session_rules_table_t srt,
ip6_address_t lcl_ip,
ip6_address_t rmt_ip,
u16  lcl_port,
u16  rmt_port 
)

Definition at line 350 of file session_rules_table.c.

+ Here is the caller graph for this function:

u32 session_rules_table_rule_for_tag ( session_rules_table_t srt,
u8 tag 
)

Definition at line 102 of file session_rules_table.c.

+ Here is the caller graph for this function:

u8* session_rules_table_rule_tag ( session_rules_table_t srt,
u32  ri,
u8  is_ip4 
)

Definition at line 37 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void session_rules_table_show_rule ( vlib_main_t vm,
session_rules_table_t srt,
ip46_address_t *  lcl_ip,
u16  lcl_port,
ip46_address_t *  rmt_ip,
u16  rmt_port,
u8  is_ip4 
)

Definition at line 546 of file session_rules_table.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: