This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tsg-master/inc/app_label.h

63 lines
985 B
C
Raw Normal View History

2020-11-14 15:50:44 +06:00
#ifndef __APP_LABEL_H__
#define __APP_LABEL_H__
#define MAX_APP_ID_NUM 8
2021-03-02 10:39:33 +08:00
struct app_id_label
2020-11-14 15:50:44 +06:00
{
int app_id_num;
unsigned int app_id[MAX_APP_ID_NUM];
unsigned int surrogate_id[MAX_APP_ID_NUM];
2020-11-14 15:50:44 +06:00
};
2021-03-02 10:39:33 +08:00
struct basic_proto_label
2020-11-14 15:50:44 +06:00
{
int continue_scan_flag; //0: stop; 1: continue
int protocol_id_num;
unsigned short protocol_id[MAX_APP_ID_NUM];
};
enum APP_IDENTIFY_ORIGIN
{
ORIGIN_BASIC_PROTOCOL=0,
ORIGIN_USER_DEFINE,
ORIGIN_DKPT,
ORIGIN_QM_ENGINE,
ORIGIN_MAX
};
struct app_identify_result
{
enum APP_IDENTIFY_ORIGIN origin;
int app_id_num;
unsigned int app_id[MAX_APP_ID_NUM];
unsigned int surrogate_id[MAX_APP_ID_NUM];
2020-11-14 15:50:44 +06:00
};
enum _ATTRIBUTE_TYPE
{
ATTRIBUTE_TYPE_UNKNOWN,
ATTRIBUTE_TYPE_IP,
ATTRIBUTE_TYPE_STRING,
ATTRIBUTE_TYPE_NUMERIC,
ATTRIBUTE_TYPE_BOOL,
_ATTRIBUTE_TYPE_MAX
};
2021-03-02 10:39:33 +08:00
struct attribute_kv
2020-11-14 15:50:44 +06:00
{
enum _ATTRIBUTE_TYPE type;
char *name;
void *value;
};
2021-03-02 10:39:33 +08:00
struct user_defined_attribute_label
2020-11-14 15:50:44 +06:00
{
int attribute_num;
2021-03-02 10:39:33 +08:00
struct attribute_kv *attribute;
2020-11-14 15:50:44 +06:00
};
#endif