From c297b52df5a9599c27428edf5d7ce3ac34f45a47 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 13 Jan 2008 18:12:24 +0100 Subject: [PATCH] [BUG] fix overlapping server flags Server flags SRV_GOINGDOWN, SRV_WARMINGUP were overlapping SRV_TPROXY_*. --- include/types/server.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/types/server.h b/include/types/server.h index 483e260b14..73ef022f84 100644 --- a/include/types/server.h +++ b/include/types/server.h @@ -43,11 +43,11 @@ #define SRV_CHECKED 0x0010 /* this server needs to be checked */ #define SRV_GOINGDOWN 0x0020 /* this server says that it's going down (404) */ #define SRV_WARMINGUP 0x0040 /* this server is warming up after a failure */ - -#define SRV_TPROXY_ADDR 0x0020 /* bind to this non-local address to reach this server */ -#define SRV_TPROXY_CIP 0x0040 /* bind to the client's IP address to reach this server */ -#define SRV_TPROXY_CLI 0x0060 /* bind to the client's IP+port to reach this server */ -#define SRV_TPROXY_MASK 0x0060 /* bind to a non-local address to reach this server */ +/* unused: 0x0080 */ +#define SRV_TPROXY_ADDR 0x0100 /* bind to this non-local address to reach this server */ +#define SRV_TPROXY_CIP 0x0200 /* bind to the client's IP address to reach this server */ +#define SRV_TPROXY_CLI 0x0300 /* bind to the client's IP+port to reach this server */ +#define SRV_TPROXY_MASK 0x0300 /* bind to a non-local address to reach this server */ /* function which act on servers need to return various errors */ #define SRV_STATUS_OK 0 /* everything is OK. */