]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] fix overlapping server flags
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Jan 2008 17:12:24 +0000 (18:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Jan 2008 17:12:24 +0000 (18:12 +0100)
Server flags SRV_GOINGDOWN, SRV_WARMINGUP were overlapping
SRV_TPROXY_*.

include/types/server.h

index 483e260b143e26852dcb858ddc651ea8304678a1..73ef022f84cf266033b6dede360caf49901ee46f 100644 (file)
 #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. */