From 92e38e254b2cef4e5cde4fbce91207a88f0a4610 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 8 May 2019 19:48:32 +0200 Subject: [PATCH] BUG/MEDIUM: servers: Don't use the same srv flag for cookie-set and TFO. The tfo code was based on an old patch, and the value of the SRV_F_FASTOPEN flag it used was since reused for SRV_F_COOKIESET. So give SRV_F_FASTOPEN its own value. --- include/types/server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/types/server.h b/include/types/server.h index 1a7109a2f..24e4d8991 100644 --- a/include/types/server.h +++ b/include/types/server.h @@ -143,7 +143,7 @@ enum srv_initaddr { #define SRV_F_CHECKPORT 0x0040 /* this server has a check port configured */ #define SRV_F_AGENTADDR 0x0080 /* this server has a agent addr configured */ #define SRV_F_COOKIESET 0x0100 /* this server has a cookie configured, so don't generate dynamic cookies */ -#define SRV_F_FASTOPEN 0x0100 /* Use TCP Fast Open to connect to server */ +#define SRV_F_FASTOPEN 0x0200 /* Use TCP Fast Open to connect to server */ /* configured server options for send-proxy (server->pp_opts) */ #define SRV_PP_V1 0x0001 /* proxy protocol version 1 */