为了保证pinnigl链接计数时间与intecept的链接计数时间保持一致,提供tsg_set_intercept_flow函数

This commit is contained in:
liuxueli
2020-05-15 17:33:29 +08:00
parent 539a9d2833
commit eadf2aa348
3 changed files with 28 additions and 9 deletions

View File

@@ -1,6 +1,16 @@
#ifndef __TSG_STATISTIC_H__
#define __TSG_STATISTIC_H__
struct _traffic_info
{
long long con_num;
long long in_bytes;
long long out_bytes;
long long in_packets;
long long out_packets;
};
int tsg_set_policy_flow(struct streaminfo *a_stream, Maat_rule_t *p_result, int thread_seq);
int tsg_set_intercept_flow(Maat_rule_t *p_result, struct _traffic_info *traffic_info, int thread_seq);
#endif