feature:TSG-14522:适配tsg_master修改
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#define __KNI_DYNAMIC_BYPASS_H__
|
||||
|
||||
#include "kni_entry.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int first_data_ssl_dynamic_bypass(struct streaminfo *stream, struct pme_info *pmeinfo, struct pkt_info *pktinfo, int thread_seq);
|
||||
void next_data_ssl_dynamic_bypass(struct pkt_info *pktinfo);
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#define MAX_STRING_LEN 32
|
||||
|
||||
#define TSG_DIAGNOSE_POLICY_CNT 32
|
||||
#define MAX_DOMAIN_LEN 2048
|
||||
|
||||
|
||||
enum intercept_error{
|
||||
@@ -101,7 +102,7 @@ struct pme_info{
|
||||
char stream_addr[KNI_ADDR_MAX];
|
||||
int do_log;
|
||||
int policy_id;
|
||||
tsg_protocol_t protocol;
|
||||
enum TSG_PROTOCOL protocol;
|
||||
enum kni_action action;
|
||||
int service;
|
||||
struct kni_tcpopt_info client_tcpopt;
|
||||
@@ -126,8 +127,9 @@ struct pme_info{
|
||||
//kafka log
|
||||
struct TLD_handle_t *tld_handle;
|
||||
const struct streaminfo *stream;
|
||||
int maat_result_num;
|
||||
Maat_rule_t maat_result;
|
||||
//int maat_result_num;
|
||||
int n_maat_rule;
|
||||
struct maat_rule maat_rule;
|
||||
//from tfe, kafka log
|
||||
uint64_t ssl_intercept_state;
|
||||
uint64_t ssl_pinningst; //defalut 0
|
||||
@@ -151,7 +153,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 *session_attribute;
|
||||
struct session_runtime_attribute *session_attribute;
|
||||
//for ssl passthrough reason
|
||||
char ssl_passthrough_reason[KNI_SYMBOL_MAX];
|
||||
};
|
||||
@@ -243,7 +245,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;
|
||||
// int session_attribute_id;
|
||||
int log_level;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
|
||||
int pxy_tcp_option_rule_init(const char* conffile, void *logger);
|
||||
|
||||
int pxy_tcp_option_get_param(Maat_feather_t maat_feather,const struct streaminfo *a_stream,struct pme_info *pmeinfo, void *logger);
|
||||
//int pxy_tcp_option_get_param(Maat_feather_t maat_feather,const struct streaminfo *a_stream,struct pme_info *pmeinfo, void *logger);
|
||||
|
||||
int pxy_tcp_option_param_get(struct pme_info *pmeinfo, void *logger);
|
||||
|
||||
void pxy_tcp_option_modify_mss(struct pme_info *pmeinfo,void *logger);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user