summaryrefslogtreecommitdiff
path: root/src/quic_analysis.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quic_analysis.h')
-rw-r--r--src/quic_analysis.h39
1 files changed, 16 insertions, 23 deletions
diff --git a/src/quic_analysis.h b/src/quic_analysis.h
index 7423504..51ccd57 100644
--- a/src/quic_analysis.h
+++ b/src/quic_analysis.h
@@ -1,15 +1,7 @@
-/*
- * quic_analysis.h
- *
- * Created on: 2019��4��2��
- * Author: root
- */
+#ifndef _QUIC_ANALYSIS_H_
+#define _QUIC_ANALYSIS_H_
-#ifndef SRC_QUIC_ANALYSIS_H_
-#define SRC_QUIC_ANALYSIS_H_
-
-#include <stdint.h>
-#include "quic_util.h"
+#include "gquic.h"
#define QUIC_TRUE 0x01
#define QUIC_FALSE 0x00
@@ -17,24 +9,14 @@
#define QUIC_WHOLE_CLOSE 0x02
#define QUIC_DATA 0x03
#define QUIC_KEY 1
-#define CT_GNUC_SO_EXPORT __attribute__ ((visibility("default"))) //���ŵ�����so�ļ�
-#define CT_GNUC_SO_LOCAL __attribute__ ((visibility("hidden"))) //���������ڱ�so�ļ���
#define QUIC_RETURN_NORM 0x60
#define QUIC_RETURN_UNNORM 0x61
#define QUIC_RETURN_RESET_BUFFER 0x62
#define QUIC_RETURN_DROPME 0x63
#define MAX_REGION_NUM 15
#define REGION_NAME_LEN 32
-#define GQUIC_HEADER_LEN 1+8+1
-#define IQUIC_HEADER_LEN 1+8+1
-#define ENC_BIG_ENDIAN 0x00000000
-#define ENC_LITTLE_ENDIAN 0x80000000
-
-#define DIR_C2S 0x01
-#define DIR_S2C 0x02
-#define DIR_DOUBLE 0x03
-struct quic_param_t
+struct _quic_param_t
{
unsigned long long quic_interested_region_flag;
unsigned long long quic_region_cnt;
@@ -54,7 +36,18 @@ enum quic_mes_type{
MSG_UNKNOWN = 255
};
-void quic_release_exts(int thread_seq, quic_tlv_t** ext_tags, UINT16 ext_tag_num);
+struct _quic_context
+{
+ int is_quic;
+ int link_state;
+ void *business_pme;
+ struct _quic_info quic_info;
+};
+
+
+extern struct _quic_param_t g_quic_param;
+
+void quic_release_exts(int thread_seq, quic_tlv_t *ext_tags, int ext_tag_num);
#endif /* SRC_QUIC_ANALYSIS_H_ */