]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: Add ipv6 to ipv4 and sint to ipv6 casts
authorThierry FOURNIER <tfournier@arpalert.org>
Fri, 24 Jul 2015 07:04:56 +0000 (09:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Aug 2015 12:14:10 +0000 (14:14 +0200)
commitcc4d1716a2e72516c2505a6459a9ddbbfb186da2
tree6cca74681b8010f343228132d91455830f118b40
parentfd7edd3968bc52e919dd85309b456a8bf9c7c27d
MINOR: sample: Add ipv6 to ipv4 and sint to ipv6 casts

The RFC4291 says that when the IPv6 adress have the followin form:
0000::ffff:a.b.c.d, if can be converted to an IPv4 adress. This patch
enable this conversion in casts.

As the sint can be casted as ipv4, and ipv4 can be casted as ipv6, we
can directly cast sint as ipv6 using the RFC4291.
src/sample.c