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

41 lines
590 B
C
Raw Normal View History

2020-11-14 15:50:44 +06:00
#ifndef __APP_LABEL_H__
#define __APP_LABEL_H__
2021-03-02 10:39:33 +08:00
struct app_id_label
2020-11-14 15:50:44 +06:00
{
int surrogate_id;
int app_id;
};
2021-03-02 10:39:33 +08:00
struct basic_proto_label
2020-11-14 15:50:44 +06:00
{
unsigned char continue_scan_flag; //0: stop; 1: continue
unsigned char pad;
unsigned short proto_id;
};
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