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) |
|
int | 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) |
|
◆ SESSION_RULE_TAG_MAX_LEN
#define SESSION_RULE_TAG_MAX_LEN 64 |
◆ SESSION_RULES_TABLE_ACTION_ALLOW
◆ SESSION_RULES_TABLE_ACTION_DROP
◆ SESSION_RULES_TABLE_INVALID_INDEX
◆ session_rule_table_add_del_args_t
◆ session_rule_tag_t
◆ session_rules_table_t
◆ CLIB_PACKED() [1/2]
◆ CLIB_PACKED() [2/2]
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_rules_table_add_del()
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 392 of file session_rules_table.c.
◆ session_rules_table_cli_dump()
◆ session_rules_table_init()
◆ session_rules_table_lookup4()
◆ session_rules_table_lookup6()
◆ session_rules_table_rule_tag()
◆ session_rules_table_show_rule()