]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: balance source did not properly hash IPv6 addresses
authorWilly Tarreau <w@1wt.eu>
Sat, 31 Mar 2012 17:53:37 +0000 (19:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 31 Mar 2012 17:53:37 +0000 (19:53 +0200)
commit5dd7fa1f6b8eec57bff8ff4630afd7eb3e837b5e
treed0795d02be4c22685fe82f2c6ec2dd0b25f1b344
parent51b5dcae8506805dae8d4f24ea628c87ad3d21ad
BUG/MEDIUM: balance source did not properly hash IPv6 addresses

The hash of IPv6 addresses was not properly aligned and resulted in the
last quarter of the address not being hashed. In practice, this is rarely
detected since MAC addresses are used in the second half. But this becomes
very visible with IPv6-mapped IPv4 addresses such as ::FFFF:1.2.3.4 where
the IPv4 part is never hashed.

This bug has been there forever, since introduction of "balance source" in
v1.2.11. The fix must then be backported to all stable versions.

Thanks to Alex Markham for reporting this issue to the list !
src/backend.c