]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: acl/pattern: factor out the src/dst address fetches
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Apr 2012 15:31:42 +0000 (17:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:17 +0000 (20:57 +0200)
commit4a12981c6842307259d4783db185c6a74a846075
tree5647a1699964a9072fa33e42af031935f66886c8
parent12e5011a765e2e65090d3b27c1ecb4a8650f0a5d
MEDIUM: acl/pattern: factor out the src/dst address fetches

Since pattern_process() is able to automatically cast returned types
into expected types, we can safely use the sample functions to fetch
addresses whatever their family. The lowest castable type must be
declared with the keyword so that config checks pass.

Right now this means that src/dst use the same fetch function for ACLs
and patterns. src6/dst6 have been kept so that configs which explicitly
rely on v6 are properly checked.
src/proto_tcp.c