summaryrefslogtreecommitdiff
path: root/src/HTTP_Message.h
diff options
context:
space:
mode:
authorlishu <[email protected]>2020-01-09 16:11:01 +0800
committerlishu <[email protected]>2020-01-09 16:11:01 +0800
commite67b15f189016edf428b7613e123f6733a0ea039 (patch)
treee7133b916034145f588e5a44e8658b1bfef0bf99 /src/HTTP_Message.h
parent448319950e38ebe7df75d8f08f11548c628f0212 (diff)
20200109
增加协议识别标签,配合MESA_proto.so统计协议流量
Diffstat (limited to 'src/HTTP_Message.h')
-rw-r--r--src/HTTP_Message.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/HTTP_Message.h b/src/HTTP_Message.h
index a585141..2bbf8bb 100644
--- a/src/HTTP_Message.h
+++ b/src/HTTP_Message.h
@@ -223,8 +223,14 @@ typedef struct _http_prog_runtime_parameter_t
#if HTTP_PROXY_CAPFILE
int capfile_project_id;
#endif
-
+ int proto_tag_id ;
}http_prog_runtime_parameter_t;
+
+struct http_proto_tag_t
+{
+ char buf[8];
+};
+
void http_test();
#ifdef __cplusplus
@@ -240,6 +246,7 @@ void HTTP_PROT_FUNSTAT(unsigned long long protflag);
void HTTP_GETPLUGID(unsigned short plugid);
uchar http_judgeHeaderOver(http_parser_t *a_http, char *data, uint32 data_len, int thread_seq);
uchar http_positioningACompleteLine(char del_space, http_parser_t *cur_http_node, struct streaminfo *a_tcp, int thread_seq);
+int http_add_proto_tag(int projetc_id, struct streaminfo *a_stream, const char* value, int len);
#ifdef __cplusplus
}