[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Texual IPv6 address
From: |
Michael Koch |
Subject: |
Re: Texual IPv6 address |
Date: |
Sun, 14 Nov 2004 22:34:25 +0100 |
User-agent: |
KMail/1.6.2 |
Am Sonntag, 14. November 2004 19:03 schrieb Mattias Rehnberg:
> Hello,
>
> The java.net.Inet6Address class seems to produce invalid textual
> representations in some cases. In the example below, the output is
> IPv6:1010:::::2020::1 instead of IPv6:1010:0:0:0:0:2020:0:1 (or
> 1010::2020:0:1) that one would expect. I've included a patch that
> deactivates the suppression of zero segments.
>
> byte[] adr = { 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x00,
> 0x20, 0x20, 0x0, 0x0, 0x0, 0x1 };
>
> System.out.println("IPv6:" +
> InetAddress.getByAddress(adr).getHostAddress());
Yeah, we really need some mauve testcases for such stuff. I will write
some next week and fix the bugs I find. I don't think we should delay
release of 0.12 any further for this.
Michael
--
Homepage: http://www.worldforge.org/