]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pattern: Index IPv6 addresses in a tree.
authorThierry FOURNIER <tfournier@exceliance.fr>
Thu, 19 Dec 2013 22:54:54 +0000 (23:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2014 17:06:07 +0000 (18:06 +0100)
commit33a7433ac97c3dc7e1c23ff02affdf65024c4279
tree90e1de1e535ed48cdb63e3b9cbfd9297314a1c6b
parent5338eea8ebe7198f421bb18efddb850695c39115
MEDIUM: pattern: Index IPv6 addresses in a tree.

This commit adds second tree node in the pattern struct and use it to
index IPv6 addresses. This commit report feature used in the list. If
IPv4 not match the tree, try to convert the IPv4 address in IPv6 with
prefixing the IPv4 address by "::ffff", after this operation, the match
function try lookup in the IPv6 tree. If the IPv6 sample dont match the
IPv6 tree, try to convert the IPv6 addresses prefixed by "2002:IPv4",
"::ffff:IPv4" and "::0000:IPv4" in IPv4 address. after this operation,
the match function try lookup in the IPv4 tree.
include/types/pattern.h
src/pattern.c