[MINOR] proxy: add a list to hold future layer 4 rules

This list will be evaluated right after the accept() call.
This commit is contained in:
Willy Tarreau 2010-05-23 22:39:25 +02:00
parent eb472685cb
commit ab786194f0
2 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ struct proxy {
struct { /* TCP request processing */ struct { /* TCP request processing */
unsigned int inspect_delay; /* inspection delay */ unsigned int inspect_delay; /* inspection delay */
struct list inspect_rules; /* inspection rules */ struct list inspect_rules; /* inspection rules */
struct list l4_rules; /* layer4 rules */
} tcp_req; } tcp_req;
int acl_requires; /* Elements required to satisfy all ACLs (ACL_USE_*) */ int acl_requires; /* Elements required to satisfy all ACLs (ACL_USE_*) */
struct server *srv, defsrv; /* known servers; default server configuration */ struct server *srv, defsrv; /* known servers; default server configuration */

View File

@ -908,6 +908,7 @@ static void init_new_proxy(struct proxy *p)
LIST_INIT(&p->sticking_rules); LIST_INIT(&p->sticking_rules);
LIST_INIT(&p->storersp_rules); LIST_INIT(&p->storersp_rules);
LIST_INIT(&p->tcp_req.inspect_rules); LIST_INIT(&p->tcp_req.inspect_rules);
LIST_INIT(&p->tcp_req.l4_rules);
LIST_INIT(&p->req_add); LIST_INIT(&p->req_add);
LIST_INIT(&p->rsp_add); LIST_INIT(&p->rsp_add);