]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: acl/pattern: switch rdp_cookie functions stack up-down
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Apr 2012 21:13:20 +0000 (23:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:16 +0000 (20:57 +0200)
commit32389b7d042f0dfe7e1b11a3f9e3678a6ea226df
treea444cdd814e983ec3596117e5a196bb7bea41746
parentb8c8f1f61170a9e8fef9eaad03ac8f66b0a035ab
MEDIUM: acl/pattern: switch rdp_cookie functions stack up-down

Previously, both pattern, backend and persist_rdp_cookie would build fake
ACL expressions to fetch an RDP cookie by calling acl_fetch_rdp_cookie().

Now we switch roles. The RDP cookie fetch function is provided as a sample
fetch function that all others rely on, including ACL. The code is exactly
the same, only the args handling moved from expr->args to args. The code
was moved to proto_tcp.c, but probably that a dedicated file would be more
suited to content handling.
include/proto/acl.h
include/proto/backend.h
include/proto/proto_tcp.h
src/acl.c
src/backend.c
src/proto_tcp.c