]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pattern: add support for compiling patterns for lookups
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 6 Dec 2013 19:33:50 +0000 (20:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Dec 2013 14:44:02 +0000 (15:44 +0100)
commit0b2fe4a5cd8f694ce1d79682e96bfc861b0fcfbf
tree321cefffd946f2699f2a0de23cb3ee4cf259ba5c
parent39e258fcee94f26fc29b732225decc418bfb930a
MINOR: pattern: add support for compiling patterns for lookups

With this patch, patterns can be compiled for two modes :
  - match
  - lookup

The match mode is used for example in ACLs or maps. The lookup mode
is used to lookup a key for pattern maintenance. For example, looking
up a network is different from looking up one address belonging to
this network.

A special case is made for regex. In lookup mode they return the input
regex string and do not compile the regex.
include/proto/pattern.h
include/types/acl.h
include/types/pattern.h
src/pattern.c
src/proto_http.c