From ab786194f0d8974adb8f3944ea15a55fd71fcab2 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 23 May 2010 22:39:25 +0200 Subject: [PATCH] [MINOR] proxy: add a list to hold future layer 4 rules This list will be evaluated right after the accept() call. --- include/types/proxy.h | 1 + src/cfgparse.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/types/proxy.h b/include/types/proxy.h index 3ac80d81ea..0c1ca76738 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 06ebf36514..e5b66e8ca2 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);