TSG-2846: 增加 kni 对共享tsg_master 扫描maat 结果给tfe的支持

This commit is contained in:
fumingwei
2020-08-24 11:33:41 +08:00
parent 5313a04d93
commit dca9c67275
5 changed files with 265 additions and 5 deletions

View File

@@ -6,6 +6,7 @@
#include "kni_utils.h"
#include "tsg/tsg_statistic.h"
#include "tfe_mgr.h"
#include "tsg/tsg_label.h"
#define BURST_MAX 1
#define CALLER_SAPP 0
@@ -14,6 +15,8 @@
#define SSL_INFO_LEN 2048
#define _MAX_MAAT_TABLE_NAME_LEN 64
#define MAX_STRING_LEN 32
enum intercept_error{
INTERCEPT_ERROR_ASYM_ROUTING = -1,
INTERCEPT_ERROR_NO_SYN = -2,
@@ -139,6 +142,7 @@ struct pme_info{
//for proxy tcp option
struct proxy_tcp_option pxy_tcp_option;
int pxy_tcp_option_is_scan;
struct _session_attribute_label_t *session_attribute_label;
};
struct wrapped_packet{
@@ -211,6 +215,7 @@ struct kni_handle{
char maat_table_name[TABLE_MAX][_MAX_MAAT_TABLE_NAME_LEN]; // for proxy tcp option maat name
int maat_table_id[TABLE_MAX];
struct proxy_tcp_option pxy_tcp_option;
int session_attribute_id;
};
struct traceid2pme_search_cb_args{