]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: acl: store the ACL argument types in the ACL keyword declaration
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Apr 2012 16:42:05 +0000 (18:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:11 +0000 (20:57 +0200)
commit61612d49a7e29b9024547a981395492fce516874
tree05eed280d53c97d4a6d146922b4dfb8e2ea68fbc
parent34db10842367dd7f9cebd6821bd4d3a59c1f19eb
MAJOR: acl: store the ACL argument types in the ACL keyword declaration

The types and minimal number of ACL keyword arguments are now stored in
their declaration. This will allow many more fantasies if some ACL use
several arguments or types.

Doing so required to rework all ACL keyword declarations to add two
parameters. So this was a good opportunity for a general cleanup and
to sort all entries in alphabetical order.

We still have two pending issues :
  - parse_acl_expr() checks for errors but has no way to report them to
    the user ;
  - the types of some arguments are still not resolved and kept as strings
    (eg: ARGT_FE/BE/TAB) for compatibility reasons, which must be resolved
    in acl_find_targets()
include/types/acl.h
src/acl.c
src/backend.c
src/frontend.c
src/proto_http.c
src/proto_tcp.c
src/protocols.c
src/session.c