Wireshark mailing list archives

Re: IPv6 longest representation vs INET6_ADDRSTRLEN


From: Jakub Zawadzki <darkjames-ws () darkjames pl>
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...
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: