]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] proxy: add a list to hold future layer 4 rules
authorWilly Tarreau <w@1wt.eu>
Sun, 23 May 2010 20:39:25 +0000 (22:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Jun 2010 08:53:11 +0000 (10:53 +0200)
This list will be evaluated right after the accept() call.

include/types/proxy.h
src/cfgparse.c

index 3ac80d81ea1b05ee793ac4594eaf8007b684017b..0c1ca76738b0d9fff9ba9f35a7bf36e1ede6bda9 100644 (file)
@@ -182,6 +182,7 @@ struct proxy {
        struct {                                /* TCP request processing */
                unsigned int inspect_delay;     /* inspection delay */
                struct list inspect_rules;      /* inspection rules */
+               struct list l4_rules;           /* layer4 rules */
        } tcp_req;
        int acl_requires;                       /* Elements required to satisfy all ACLs (ACL_USE_*) */
        struct server *srv, defsrv;             /* known servers; default server configuration */
index 06ebf36514008ccc44dda742f26d59e9cf9e0eb7..e5b66e8ca2ba9a72094ca0daeddd18bbccbfffee 100644 (file)
@@ -908,6 +908,7 @@ static void init_new_proxy(struct proxy *p)
        LIST_INIT(&p->sticking_rules);
        LIST_INIT(&p->storersp_rules);
        LIST_INIT(&p->tcp_req.inspect_rules);
+       LIST_INIT(&p->tcp_req.l4_rules);
        LIST_INIT(&p->req_add);
        LIST_INIT(&p->rsp_add);