Go to the source code of this file.
|
typedef | CLIB_PACKED (struct{union{struct{ip4_address_t rmt_ip;ip4_address_t lcl_ip;u16 rmt_port;u16 lcl_port;};u64 as_u64[2];};}) session_mask_or_match_4_t |
|
typedef | CLIB_PACKED (struct{union{struct{ip6_address_t rmt_ip;ip6_address_t lcl_ip;u16 rmt_port;u16 lcl_port;};u64 as_u64[5];};}) session_mask_or_match_6_t |
|
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_lookup6 (session_rules_table_t *srt, ip6_address_t *lcl_ip, ip6_address_t *rmt_ip, u16 lcl_port, u16 rmt_port) |
|
void | session_rules_table_cli_dump (vlib_main_t *vm, session_rules_table_t *srt, u8 fib_proto) |
|
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) |
|
clib_error_t * | session_rules_table_add_del (session_rules_table_t *srt, session_rule_table_add_del_args_t *args) |
| Add/delete session rule. More...
|
|
u8 * | session_rules_table_rule_tag (session_rules_table_t *srt, u32 ri, u8 is_ip4) |
|
void | session_rules_table_init (session_rules_table_t *srt) |
|
#define SESSION_RULE_TAG_MAX_LEN 64 |
Add/delete session rule.
- Parameters
-
srt | table where rule should be added |
args | rule arguments |
- Returns
- 0 if success, clib_error_t error otherwise
Definition at line 390 of file session_rules_table.c.