From: Henrik Nordstrom Date: Sun, 28 Feb 2010 20:48:31 +0000 (+0100) Subject: Correct IPv4-mapped prefix, broken in rev 10247 Use POSIX tests for IPv6 address... X-Git-Tag: SQUID_3_2_0_1~398 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=697675ab9feed68d0b07fbc0319d77b7af5af662;p=thirdparty%2Fsquid.git Correct IPv4-mapped prefix, broken in rev 10247 Use POSIX tests for IPv6 address detections. --- diff --git a/src/ip/IpAddress.cc b/src/ip/IpAddress.cc index 38e23d90aa..2b9cdacadd 100644 --- a/src/ip/IpAddress.cc +++ b/src/ip/IpAddress.cc @@ -287,10 +287,10 @@ bool IpAddress::SetIPv4() { #if USE_IPV6 static const struct in6_addr v4_localhost = {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x01 }} + 0x00, 0x00, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x01 }} }; static const struct in6_addr v4_any = {{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }} + 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 }} }; if ( IsLocalhost() ) {