From 389b8337dc312eeb91339829910ae3a94fd65fb0 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 15 Oct 2024 13:28:38 +0300 Subject: [PATCH] tpws: move l7proto defs to one place --- tpws/params.h | 4 ---- tpws/tamper.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tpws/params.h b/tpws/params.h index 187d5b2..2e9cb93 100644 --- a/tpws/params.h +++ b/tpws/params.h @@ -14,10 +14,6 @@ #define HOSTLIST_AUTO_FAIL_THRESHOLD_DEFAULT 3 #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 }; #define MAX_BINDS 32 diff --git a/tpws/tamper.h b/tpws/tamper.h index fd656ca..437abdf 100644 --- a/tpws/tamper.h +++ b/tpws/tamper.h @@ -10,7 +10,12 @@ #define SPLIT_FLAG_OOB 0x02 typedef enum {UNKNOWN=0, HTTP, TLS} t_l7proto; + const char *l7proto_str(t_l7proto l7); +#define L7_PROTO_HTTP 1 +#define L7_PROTO_TLS 2 +#define L7_PROTO_UNKNOWN 0x80000000 + typedef struct { // common state