From: Willy Tarreau Date: Sun, 23 May 2010 20:39:25 +0000 (+0200) Subject: [MINOR] proxy: add a list to hold future layer 4 rules X-Git-Tag: v1.5-dev8~594 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/stylesheets/stylesheet.css?a=commitdiff_plain;h=ab786194f0d8974adb8f3944ea15a55fd71fcab2;p=haproxy.git [MINOR] proxy: add a list to hold future layer 4 rules This list will be evaluated right after the accept() call. --- diff --git a/include/types/proxy.h b/include/types/proxy.h index 3ac80d81e..0c1ca7673 100644 --- a/include/types/proxy.h +++ b/include/types/proxy.h @@ -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 */ diff --git a/src/cfgparse.c b/src/cfgparse.c index 06ebf3651..e5b66e8ca 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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);