From 930bd6b76399b664d4fb8a2f2aa599c76da6f2c0 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 23 Feb 2011 15:17:24 +0100 Subject: [PATCH] [MINOR] acl: add ability to check for internal response-only parameters Some parameters are known to the response only (eg: the server which processed it). Let's have a flag for that. --- include/types/acl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/types/acl.h b/include/types/acl.h index 58ea7cce6..a22b6cccb 100644 --- a/include/types/acl.h +++ b/include/types/acl.h @@ -151,6 +151,9 @@ enum { ACL_USE_HDR_VOLATILE = 1 << 22, /* volatile request or response header (eg: cookie) */ ACL_USE_HDR_ANY = (ACL_USE_HDR_CACHEABLE | ACL_USE_HDR_VOLATILE), + /* This one indicates that we need an internal parameter known in the response only */ + ACL_USE_RTR_INTERNAL = 1 << 23, /* volatile response information */ + /* information which remains during response */ ACL_USE_REQ_PERMANENT = (ACL_USE_TCP4_PERMANENT | ACL_USE_TCP6_PERMANENT | ACL_USE_TCP_PERMANENT | ACL_USE_L6REQ_PERMANENT | ACL_USE_L7REQ_PERMANENT), @@ -168,7 +171,7 @@ enum { ACL_USE_L7_ANY = (ACL_USE_L7REQ_ANY | ACL_USE_L7RTR_ANY | ACL_USE_HDR_ANY), /* any type of response information */ - ACL_USE_RTR_ANY = (ACL_USE_L6RTR_ANY | ACL_USE_L7RTR_ANY), + ACL_USE_RTR_ANY = (ACL_USE_L6RTR_ANY | ACL_USE_L7RTR_ANY | ACL_USE_RTR_INTERNAL), /* some flags indicating if a keyword supports exact pattern matching, * so that patterns may be arranged in lookup trees. Let's put those