summaryrefslogtreecommitdiff
path: root/src/inc/app_detect.h
blob: 9f22791f5e54697380e132749f8995b42b2c9088 (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
#ifndef __APP_DETECT_H__
#define __APP_DETECT_H__

#define TUPLE4_TYPE_V4 1
#define TUPLE4_TYPE_V6 2

typedef enum __APP_TYPE
{
	APP_TYPE_UNKNOWN=1,
	APP_TYPE_ANDROID,
	APP_TYPE_IOS,
}APP_TYPE_t;

typedef struct __appdtc_detail
{
	char *tuple4;
	char *user_agent;
	char *url;
	void *app_data;
	unsigned int tuple4_len;
	unsigned short app_type; //APP_TYPE_t
	unsigned int ua_len;
	unsigned int url_len;
	unsigned long long data_len;
	unsigned long long appid;
}appdtc_detail_t;

typedef void * appdtc_handle_t;

extern "C" appdtc_handle_t APPDETECT_PLUG_INIT(int thread_num, const char *conf_file_name);
//����ֵ: 0-succ
extern "C" int APPDTC_PLUG_ENTRY(appdtc_handle_t handle, appdtc_detail_t *detail, unsigned int thread_id);

#endif