blob: aa3f1444ee5e95df3207d3ffb7a7471efa82f1c5 (
plain)
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
|
#ifndef __GIVEN_TROJAN_DIG_H__
#define __GIVEN_TROJAN_DIG_H__
#include <MESA/http.h>
#include <MESA/MESA_prof_load.h>
#include <MESA/MESA_handle_logger.h>
#include <soq/t2_public.h>
#include <stdlib.h>
#include <time.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
extern "C"{
#include "inc/digapis_detector.h"
}
#define MAX_PATH_LEN 256
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct _g_http_dig_biz_info
{
int run_rlog_lv;
char run_log_path[MAX_PATH_LEN];
void * run_log_handle;
}g_http_dig_biz_info_t;
typedef struct _t2_digapis_context
{
int is_ipv4;
char sip[128];
UINT16 sport;
char dip[128];
UINT16 dport;
int request_len;
char request[REQUEST_MAX_LENGTH];
int response_len;
char response[RESPONSE_MAX_LENGTH];
}t2_digapis_context_t;
int T2_HTTP_DIGAPI_ENTRY(stSessionInfo* session_info, void **param, int thread_seq, struct streaminfo *a_tcp, void *a_packet);
int T2_HTTP_DIG_BIZ_INIT(void);
void T2_HTTP_DIG_BIZ_DESTROY(void);
#ifdef __cplusplus
}
#endif
#endif
|