1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <arpa/inet.h>
#include <time.h>
#include <MESA/stream.h>
#include <MESA/http.h>
#include <MESA/MESA_handle_logger.h>
#include <MESA/MESA_prof_load.h>
#include <MESA/magellan_logger.h>
#include "inc/qdjcq_magellan_id.h"
#include "inc/dj_rule.h"
#include "http_jt_audit.h"
const char HTTP_JT_AUDIT_VERSION_20170721 = 0;
g_jt_aduit_http_info_t g_jt_aduit_http_info;
const char *g_conf_file_path = "./djconf/http_jt_audit.conf";
const char *module_name = "JT_HTTP_PLUG";
const char *register_table_name[REGISTER_TABLE_NUM] = {"URL_PZ"};
unsigned short http_file_sequence = 0;
#ifndef atomic_read
#define atomic_read(x) __sync_add_and_fetch((x),0)
#endif
#ifndef atomic_add
#define atomic_add(x,y) __sync_add_and_fetch((x),(y))
#endif
#ifndef atomic_set
#define atomic_set(x,y) __sync_lock_test_and_set((x),y)
#endif
void free_project_req(int thread_seq, void *project_req)
{
if(project_req != NULL)
{
dictator_free(thread_seq, project_req);
project_req = NULL;
}
}
void http_free_magellan_opt(magellan_opt_t *m_opt, int thread_seq)
{
if(m_opt->opt_value != NULL)
{
dictator_free(thread_seq, (void *)m_opt->opt_value);
m_opt->opt_value = NULL;
}
}
void http_time_to_string(char *time_str, unsigned int time_str_len)
{
time_t t;
time(&t);
dj_thread_safe_ctime(&t, time_str, time_str_len);
}
int http_get_magellan_opt(magellan_opt_t *m_opt, int count, char *buf, int buflen, int type, int thread_seq)
{
if(buf == NULL || buflen == 0)
{
return 0;
}
if(count >= SEND_LOG_MAGELLAN_OPT_NUM)
return 0;
m_opt->opt_len= buflen;
m_opt->opt_type= type;
m_opt->opt_value= (char *)dictator_malloc(thread_seq, m_opt->opt_len);
memcpy((void *)m_opt->opt_value, (void *)buf, buflen);
return 1;
}
int get_tuple4_opt(magellan_opt_t **opt, struct streaminfo *a_tcp, int thread_seq)
{
int ret = -1, index = 0;
char mac_str[32], ip_str[32];
void *out_value = NULL;
struct layer_addr_ipv4 *ipv4 = NULL;
struct layer_addr_mac *mac = NULL;
ret = get_rawpkt_opt_from_streaminfo(a_tcp, RAW_PKT_GET_DATA, out_value);
if(ret < 0)
{
MESA_handle_runtime_log(g_jt_aduit_http_info.runlog, RLOG_LV_FATAL, "GET_TUPLE$_OPT", "No support get MAC ...");
return -1;
}
mac = (struct layer_addr_mac *)out_value;
//½«¿É±ä¸ö²ÎÊý°´ÕÕformat¸ñʽ»¯³É×Ö·û´®
snprintf(mac_str, 32, "%02x-%02x-%02x-%02x-%02x-%02x", mac->dst_mac[0], mac->dst_mac[1],
mac->dst_mac[2], mac->dst_mac[3], mac->dst_mac[4], mac->dst_mac[5]);
index+=http_get_magellan_opt(opt[index],index,mac_str,strlen(mac_str), MAGELLAN_OPT_DMAC, thread_seq);
snprintf(mac_str, 32, "%02x-%02x-%02x-%02x-%02x-%02x", mac->src_mac[0], mac->src_mac[1],
mac->src_mac[2], mac->src_mac[3], mac->src_mac[4], mac->src_mac[5]);
index+=http_get_magellan_opt(opt[index],index,mac_str,strlen(mac_str), MAGELLAN_OPT_SMAC, thread_seq);
if(a_tcp->addr.addrtype == ADDR_TYPE_IPV4)
{
ipv4 = a_tcp->addr.ipv4;
inet_ntop(AF_INET, (const void *)&ipv4->daddr, ip_str, sizeof(ip_str));
index+=http_get_magellan_opt(opt[index],index, ip_str,strlen(ip_str), MAGELLAN_OPT_DIP, thread_seq);
index+=http_get_magellan_opt(opt[index],index, (char *)&ipv4->dest, sizeof(ipv4->dest), MAGELLAN_OPT_DPORT, thread_seq);
inet_ntop(AF_INET, (const void *)&ipv4->saddr, ip_str, sizeof(ip_str));
index+=http_get_magellan_opt(opt[index],index, ip_str,strlen(ip_str), MAGELLAN_OPT_SIP, thread_seq);
index+=http_get_magellan_opt(opt[index],index, (char *)&ipv4->source, sizeof(ipv4->source), MAGELLAN_OPT_SPORT, thread_seq);
}
return index;
}
int http_init_process_context(process_context_t **process_context, int thread_seq)
{
process_context_t *context = (process_context_t *)dictator_malloc(thread_seq, sizeof(process_context_t));
memset(context, 0 , sizeof(process_context_t));
*process_context = context;
return 1;
}
void http_destroy_process_context(process_context_t *process_context, int thread_seq)
{
int i = 0;
if(process_context->m_opt_index != 0)
{
for(i = 0; i < process_context->m_opt_index; i++)
{
http_free_magellan_opt(&(process_context->m_opt[i]), thread_seq);
}
}
dictator_free(thread_seq,process_context);
process_context = NULL;
}
unsigned char JT_AUDIT_HTTP_PLUG_ENTRY(stSessionInfo* session_info, void **param, int thread_seq, struct streaminfo *a_tcp, void *a_packet)
{
int ret = PROT_STATE_GIVEME;
int found_pos = 0, file_seq = 0, i = 0;
time_t alarm_time;
char *method = NULL;
const char *transf_proto = "TCP";
const char *app_proto = "http";
scan_status_t scan_mid = NULL;
target_tag *tag = NULL;
struct Maat_rule_t scan_result[MAX_RESULT_NUM];
struct http_infor_t *http_info = (http_infor *)session_info->app_info;
process_context_t *context = (process_context_t *)*param;
char nothing[] = "NULL";
char *nothing_p = nothing;
char buffer_url[1024] = {0};
char domain[1024] = {0};
int opt_index = 0;
if(*param == NULL)
{
if((http_init_process_context(&context, thread_seq)) < 0)
{
MESA_handle_runtime_log(g_jt_aduit_http_info.runlog, RLOG_LV_FATAL, module_name, "<%s>%d: init_process_context failed ...", __FILE__, __LINE__);
return PROT_STATE_DROPME;
}
*param = context;
}
switch(session_info->prot_flag)
{
case HTTP_REQ_LINE:
method = (char *)http_get_method(http_info->method);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
method, strlen(method), MAGELLAN_OPT_METHOD, thread_seq);
context->method_check = 1;
break;
case HTTP_RES_LINE:
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)&http_info->res_code, sizeof(http_info->res_code), MAGELLAN_OPT_RET_CODE, thread_seq);
context->res_code_check = 1;
break;
case HTTP_HOST:
if(session_info->buflen != 0)
context->domain_check = 1;
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)session_info->buf, session_info->buflen, MAGELLAN_OPT_DOMAIN, thread_seq);
break;
case HTTP_MESSAGE_URL:
if(session_info->buflen != 0)
context->url_check = 1;
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)session_info->buf, session_info->buflen, MAGELLAN_OPT_URL, thread_seq);
context->hit_config_num = Maat_full_scan_string(g_dj_feather,
g_jt_aduit_http_info.table_id[REGISTER_TABLE_URL_PZ],
CHARSET_NONE,
(const char *)session_info->buf,
session_info->buflen,
scan_result,
&found_pos,
MAX_RESULT_NUM,
&scan_mid,
thread_seq
);
Maat_clean_status(&scan_mid);
/*if(context->hit_config_num <= 0)
{
ret = PROT_STATE_DROPME;
//break;
}*/
tag = (target_tag *)dictator_malloc(thread_seq, sizeof(target_tag));
memset(tag, 0, sizeof(target_tag));
for(i = 0; i < context->hit_config_num; i++)
{
if((scan_result[i].action == 1))
{
if(context->do_blacklist == 0)
{
tag->risk = scan_result[i].do_log;
}
else
{
if(scan_result[i].do_log >= tag->risk)
{
tag->risk = scan_result[i].do_log;
}
}
tag->type = scan_result[i].service_id;
tag->rule_id = scan_result[i].config_id;
context->do_blacklist = scan_result[i].action;
}
}
//白名单逻辑,直接break并释放tag,退出
if(context->do_blacklist == 0 && context->hit_config_num > 0)
{
if(tag != NULL)
{
dictator_free(thread_seq,tag);
tag = NULL;
}
http_destroy_process_context(context, thread_seq);
*param = NULL;
ret = PROT_STATE_DROPME;
return ret;
}
if(context->do_blacklist > 0)
{
atomic_add(&http_file_sequence, 1);
file_seq = atomic_read(&http_file_sequence);
alarm_time = time(NULL);
snprintf(tag->id, sizeof(tag->id), "%u%lu%u", TABID_URL_LISTEN_ALARM, alarm_time, file_seq);
project_req_add_struct(a_tcp, g_jt_aduit_http_info.label_id, (void *)tag);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
tag->id, strlen(tag->id), MAGELLAN_OPT_ID, thread_seq);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)&tag->rule_id, sizeof(tag->rule_id), MAGELLAN_OPT_RULE_ID, thread_seq);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)&tag->risk, sizeof(tag->risk), MAGELLAN_OPT_RISK, thread_seq);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)&alarm_time, sizeof(alarm_time), MAGELLAN_OPT_CAP_TIME, thread_seq);
}
/*if(tag !=NULL)
{
dictator_free(thread_seq,tag);
tag = NULL;
}*/
break;
case HTTP_USER_AGENT:
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)session_info->buf, session_info->buflen, MAGELLAN_OPT_USER_AGENT, thread_seq);
context->user_agent_check = 1;
break;
case HTTP_COOKIE:
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)session_info->buf, session_info->buflen, MAGELLAN_OPT_COOKIE, thread_seq);
context->cookie_check = 1;
break;
case HTTP_SERVER:
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
//(char *)session_info->buf, strlen((char *)session_info->buf), MAGELLAN_OPT_SERVER, thread_seq);
(char *)session_info->buf, session_info->buflen, MAGELLAN_OPT_SERVER, thread_seq);
context->server_check = 1;
break;
case HTTP_REFERER:
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)session_info->buf, session_info->buflen, MAGELLAN_OPT_REFER, thread_seq);
context->refer_check = 1;
break;
default:
break;
}
if((session_info->session_state&SESSION_STATE_CLOSE) || (ret&PROT_STATE_DROPME))
{
if(context->hit_config_num > 0 && context->do_blacklist > 0)//ÃüÖÐÇÒÖ»ÒªÓкÚÃûµ¥£¬Éó¼ÆÕìÌý¶¼¼Ç¼
{
//domain
if(context->method_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,nothing_p, strlen(nothing_p), MAGELLAN_OPT_METHOD, thread_seq);
if(context->res_code_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,(char *)&context->res_code_check, sizeof(int), MAGELLAN_OPT_RET_CODE, thread_seq);
if(context->user_agent_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index, nothing_p, strlen(nothing_p), MAGELLAN_OPT_USER_AGENT, thread_seq);
if(context->cookie_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index, nothing_p, strlen(nothing_p), MAGELLAN_OPT_COOKIE, thread_seq);
if(context->server_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index, nothing_p, strlen(nothing_p), MAGELLAN_OPT_SERVER, thread_seq);
if(context->refer_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index, nothing_p, strlen(nothing_p), MAGELLAN_OPT_REFER, thread_seq);
if(context->domain_check == 0)
{
opt_index = context->m_opt_index;
for(i = 0; i < opt_index; i++)
{
if(context->m_opt[i].opt_type == MAGELLAN_OPT_URL)
{
int j = 0;
if(context->m_opt[i].opt_len > 1024)
{
memcpy(buffer_url,context->m_opt[i].opt_value,1024);
}
else
{
memcpy(buffer_url,context->m_opt[i].opt_value,context->m_opt[i].opt_len);
}
int len_url = strlen(buffer_url);
for(j = 0;j<len_url;j++)
{
if(buffer_url[j] - 0 == 47)
break;
domain[j] = buffer_url[j];
}
}
}
if(strlen(domain) == 0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index, nothing_p, strlen(nothing_p), MAGELLAN_OPT_DOMAIN, thread_seq);
else
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,domain, strlen(domain), MAGELLAN_OPT_DOMAIN, thread_seq);
}
char cur_time_str[20] = {0};
http_time_to_string(cur_time_str, sizeof(cur_time_str));
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
cur_time_str,strlen(cur_time_str),MAGELLAN_OPT_TIME,thread_seq);
time_t captime = time(NULL);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)&captime,sizeof(time_t),MAGELLAN_OPT_CAP_TIME,thread_seq);
dj_magellan_write_log(a_tcp, QDJCQ_MGLL_USERID, TABID_URL_LISTEN_ALARM, context->m_opt, context->m_opt_index, thread_seq);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)transf_proto, strlen(transf_proto)+1, MAGELLAN_OPT_PROTOCOL, thread_seq);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)app_proto, strlen(app_proto)+1, MAGELLAN_OPT_APP, thread_seq);
dj_magellan_write_log(a_tcp, QDJCQ_MGLL_USERID, TABID_WEB_AUDIT_LOG, context->m_opt, context->m_opt_index, thread_seq);
}
else if(context->hit_config_num > 0 && context->do_blacklist == 0)//Èç¹ûÈ«°×£¬NULL
{
MESA_handle_runtime_log(g_jt_aduit_http_info.runlog, RLOG_LV_FATAL, "http_jt_audit", "filter ...");
}
else//Èç¹ûûÓÐÃüÖУ¬Ö»Êä³öÉó¼ÆÈÕÖ¾
{
char cur_time_str[20] = {0};
http_time_to_string(cur_time_str, sizeof(cur_time_str));
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
cur_time_str,strlen(cur_time_str),MAGELLAN_OPT_TIME,thread_seq);
if(context->url_check == 0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,nothing_p, strlen(nothing_p), MAGELLAN_OPT_URL, thread_seq);
if(context->method_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,nothing_p, strlen(nothing_p), MAGELLAN_OPT_METHOD, thread_seq);
if(context->res_code_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,(char *)&context->res_code_check, sizeof(int), MAGELLAN_OPT_RET_CODE, thread_seq);
if(context->user_agent_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,nothing_p, strlen(nothing_p), MAGELLAN_OPT_USER_AGENT, thread_seq);
if(context->cookie_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,nothing_p, strlen(nothing_p), MAGELLAN_OPT_COOKIE, thread_seq);
if(context->server_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,nothing_p, strlen(nothing_p), MAGELLAN_OPT_SERVER, thread_seq);
if(context->refer_check==0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,nothing_p, strlen(nothing_p), MAGELLAN_OPT_REFER, thread_seq);
if(context->domain_check == 0)
{
opt_index = context->m_opt_index;
for(i = 0; i < opt_index; i++)
{
if(context->m_opt[i].opt_type == MAGELLAN_OPT_URL)
{
int j;
if(context->m_opt[i].opt_len > 1024)
{
memcpy(buffer_url,context->m_opt[i].opt_value,1024);
}
else
{
memcpy(buffer_url,context->m_opt[i].opt_value,context->m_opt[i].opt_len);
}
int len_url = strlen(buffer_url);
for(j = 0;j<len_url;j++)
{
if(buffer_url[j] - 0 == 47)
break;
domain[j] = buffer_url[j];
}
}
}
if(strlen(domain) == 0)
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index, nothing_p, strlen(nothing_p), MAGELLAN_OPT_DOMAIN, thread_seq);
else
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,domain, strlen(domain), MAGELLAN_OPT_DOMAIN, thread_seq);
}
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)transf_proto, strlen(transf_proto)+1, MAGELLAN_OPT_PROTOCOL, thread_seq);
context->m_opt_index+=http_get_magellan_opt(&context->m_opt[context->m_opt_index],context->m_opt_index,
(char *)app_proto, strlen(app_proto)+1, MAGELLAN_OPT_APP, thread_seq);
if(g_jt_aduit_http_info.audit_level == 0)
dj_magellan_write_log(a_tcp, QDJCQ_MGLL_USERID, TABID_WEB_AUDIT_LOG, context->m_opt, context->m_opt_index, thread_seq);
}
http_destroy_process_context(context, thread_seq);
*param = NULL;
return PROT_STATE_DROPME;
}
return ret;
}
int JT_AUDIT_HTTP_PLUG_INIT(void)
{
int i = 0, ret = 0;
MESA_load_profile_int_def(g_conf_file_path, "Moudle", "AUDIT_LEVEL", &g_jt_aduit_http_info.audit_level, 0);
MESA_load_profile_int_def(g_conf_file_path, "Moudle", "LOG_LEVEL", &g_jt_aduit_http_info.log_level, 30);
MESA_load_profile_string_def(g_conf_file_path, "Moudle", "LOG_PATH", g_jt_aduit_http_info.runlog_path, MAX_FILEPATH_LEN,NULL);
g_jt_aduit_http_info.runlog = MESA_create_runtime_log_handle(g_jt_aduit_http_info.runlog_path, g_jt_aduit_http_info.log_level);
if(g_jt_aduit_http_info.runlog == NULL)
{
printf("MESA_create_handle failed ... \n\n");
return -1;
}
for(i = 0; i < REGISTER_TABLE_NUM; i++)
{
g_jt_aduit_http_info.table_id[i] = Maat_table_register(g_dj_feather, register_table_name[i]);
if(g_jt_aduit_http_info.table_id[i] < 0)
{
MESA_handle_runtime_log(g_jt_aduit_http_info.runlog, RLOG_LV_FATAL, "JT_AUDIT_HTTP_PLUG_INIT", "Register table id failed ...");
return -1;
}
}
g_jt_aduit_http_info.label_id = project_producer_register(IP_REQ_NAME, PROJECT_VAL_TYPE_STRUCT, free_project_req);
if(ret < 0)
{
MESA_handle_runtime_log(g_jt_aduit_http_info.runlog, RLOG_LV_FATAL, "JT_AUDIT_HTTP_PLUG_INIT", "Register stream label failed ...");
return -1;
}
return 0;
}
void JT_AUDIT_HTTP_PLUG_DESTROY(void)
{
}
|