diff options
| author | lishu <[email protected]> | 2020-01-09 16:11:01 +0800 |
|---|---|---|
| committer | lishu <[email protected]> | 2020-01-09 16:11:01 +0800 |
| commit | e67b15f189016edf428b7613e123f6733a0ea039 (patch) | |
| tree | e7133b916034145f588e5a44e8658b1bfef0bf99 /src/HTTP_Analyze.c | |
| parent | 448319950e38ebe7df75d8f08f11548c628f0212 (diff) | |
20200109
增加协议识别标签,配合MESA_proto.so统计协议流量
Diffstat (limited to 'src/HTTP_Analyze.c')
| -rw-r--r-- | src/HTTP_Analyze.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/HTTP_Analyze.c b/src/HTTP_Analyze.c index f4b9a66..5c04962 100644 --- a/src/HTTP_Analyze.c +++ b/src/HTTP_Analyze.c @@ -25,7 +25,7 @@ http_prog_runtime_parameter_t g_http_prog_para; int G_HTTP_H_VERSION_4_20191205 = 0; -int G_HTTP_VERSION_4_20191205 = 0; +int G_HTTP_VERSION_4_20200108 = 0; void history() { //2014-12-09 V3.0 new documentAnalyze lib ; http.h add and delete ; @@ -103,7 +103,7 @@ void history() //2019-01-28 V4.0 //1. support Content-Range: bytes -154100106/154100107 2. bug:http_doWithGzipData 3. assert(session_info.buflen>=0); //2019-11-12 V4.0 //����http_host_parser���� //2019-12-05 V4.0 //����http_line2value���� - + //2020-01-08 V4.0 //add mesa_proto } @@ -1225,7 +1225,11 @@ char HTTP_ENTRY(struct streaminfo *a_tcp, void**pme, int thread_seq, void *a_pac } #endif rec = http_analyseHttpConnection(a_http_stream, a_tcp, thread_seq, a_packet); - a_http_stream->packet_offset = 0; + a_http_stream->packet_offset = 0; + if(HTTP_TRUE==a_http_stream->maybe_http_stream) + { + http_add_proto_tag(g_http_prog_para.proto_tag_id, a_tcp, "HTTP", strlen("HTTP")); + } break; default: break; |
