Wireshark-dev: Re: [Wireshark-dev] IPv6 longest representation vs INET6_ADDRSTRLEN
From: Jakub Zawadzki <[email protected]>
Date: Thu, 5 May 2011 15:01:20 +0200
On Thu, May 05, 2011 at 02:01:06PM +0200, Jakub Zawadzki wrote:
> IMHO when IPv4-mapping is used the longest address is:
> ::ffff:255.255.255.255 (22B)
> 
> Anyone knows inet_ntop(AF_INET6, ..) implementation which can actually use 46 bytes?
 
Maybe some inet_ntop() implementation don't generate short addresses? (0000 instead of ::)
so ipv4 mapped address would be: "0000:0000:0000:0000:0000:0000:255.255.255.255"

I think I'll just copy inet_ntop6() from wsutil/inet_ntop.c to address_to_str.c...