mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-22 14:26:03 +00:00
tpws: move l7proto defs to one place
This commit is contained in:
parent
6773370a87
commit
4d66496cc3
@ -14,10 +14,6 @@
|
|||||||
#define HOSTLIST_AUTO_FAIL_THRESHOLD_DEFAULT 3
|
#define HOSTLIST_AUTO_FAIL_THRESHOLD_DEFAULT 3
|
||||||
#define HOSTLIST_AUTO_FAIL_TIME_DEFAULT 60
|
#define HOSTLIST_AUTO_FAIL_TIME_DEFAULT 60
|
||||||
|
|
||||||
#define L7_PROTO_HTTP 1
|
|
||||||
#define L7_PROTO_TLS 2
|
|
||||||
#define L7_PROTO_UNKNOWN 0x80000000
|
|
||||||
|
|
||||||
enum bindll { unwanted=0, no, prefer, force };
|
enum bindll { unwanted=0, no, prefer, force };
|
||||||
|
|
||||||
#define MAX_BINDS 32
|
#define MAX_BINDS 32
|
||||||
|
@ -10,7 +10,12 @@
|
|||||||
#define SPLIT_FLAG_OOB 0x02
|
#define SPLIT_FLAG_OOB 0x02
|
||||||
|
|
||||||
typedef enum {UNKNOWN=0, HTTP, TLS} t_l7proto;
|
typedef enum {UNKNOWN=0, HTTP, TLS} t_l7proto;
|
||||||
|
|
||||||
const char *l7proto_str(t_l7proto l7);
|
const char *l7proto_str(t_l7proto l7);
|
||||||
|
#define L7_PROTO_HTTP 1
|
||||||
|
#define L7_PROTO_TLS 2
|
||||||
|
#define L7_PROTO_UNKNOWN 0x80000000
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
// common state
|
// common state
|
||||||
|
Loading…
Reference in New Issue
Block a user