feature: TSG-17786 TFE增加对intercept策略的排序功能
This commit is contained in:
@@ -6,4 +6,7 @@ struct intercept_policy_enforcer *intercept_policy_enforcer_create(void *logger)
|
||||
void intercept_policy_enforce_destory(struct intercept_policy_enforcer *enforcer);
|
||||
// return 0 : success
|
||||
// return -1 : error (need passthrough)
|
||||
int intercept_policy_select(struct intercept_policy_enforcer *enforcer, uint64_t *rule_id_array, int rule_id_num, uint64_t *selected_rule_id);
|
||||
// return 0 : success
|
||||
// return -1 : error (need passthrough)
|
||||
int intercept_policy_enforce(struct intercept_policy_enforcer *enforcer, struct tfe_cmsg *cmsg);
|
||||
@@ -16,15 +16,17 @@ enum session_state
|
||||
SESSION_STATE_RESETALL = 4,
|
||||
};
|
||||
|
||||
#define MAX_HIT_RULES 32
|
||||
|
||||
struct ctrl_pkt_parser
|
||||
{
|
||||
char tsync[4];
|
||||
uint64_t session_id;
|
||||
enum session_state state;
|
||||
char method[32];
|
||||
uint64_t tfe_policy_ids[32];
|
||||
uint64_t tfe_policy_ids[MAX_HIT_RULES];
|
||||
int tfe_policy_id_num;
|
||||
uint64_t sce_policy_ids[32];
|
||||
uint64_t sce_policy_ids[MAX_HIT_RULES];
|
||||
int sce_policy_id_num;
|
||||
struct tfe_cmsg *cmsg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user