From 697675ab9feed68d0b07fbc0319d77b7af5af662 Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Sun, 28 Feb 2010 21:48:31 +0100 Subject: [PATCH] Correct IPv4-mapped prefix, broken in rev 10247 Use POSIX tests for IPv6 address detections. --- src/ip/IpAddress.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() ) { -- 2.47.3