]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: acl: convert all ACL requires to SMP use+val instead of ->requires
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2013 07:12:18 +0000 (08:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Apr 2013 00:13:00 +0000 (02:13 +0200)
commita91d0a583cac02193066d0d1d8a3a6f36dc75c0f
tree32bfb2bd4dd52a2f107e974adcd161c2496d0c42
parentbf8e251077adda09d2d2fa1f8679e0dcccf0b5c0
MAJOR: acl: convert all ACL requires to SMP use+val instead of ->requires

The ACLs now use the fetch's ->use and ->val to decide upon compatibility
between the place where they are used and where the information are fetched.
The code is capable of reporting warnings about very fine incompatibilities
between certain fetches and an exact usage location, so it is expected that
some new warnings will be emitted on some existing configurations.

Two degrees of detection are provided :
  - detecting ACLs that never match
  - detecting keywords that are ignored

All tests show that this seems to work well, though bugs are still possible.
include/proto/acl.h
include/proto/sample.h
include/types/acl.h
src/acl.c
src/cfgparse.c
src/proto_tcp.c