addr-family-ipv6.lisp (ipaddr-string): Use IPv4 notation if appropriate.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 22 Apr 2014 13:12:48 +0000 (14:12 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 22 Apr 2014 13:35:21 +0000 (14:35 +0100)
commit1a339c77202274463e6150bea957ddf53b800815
tree0e833642656f63f4a18a3cdd65ecf2344c8f0462
parent15db92449a34a2fede25d8ee3db38ab5cc206193
addr-family-ipv6.lisp (ipaddr-string): Use IPv4 notation if appropriate.

This supports the v4-mapped range ::ffff:0.0.0.0/96, and the deprecated
v4-compatible range ::0.0.0.0/96 (with an exception for ::0/112 so that
the magic addresses ::1 and :: still comes out OK).  The output
behaviour here seems to match Linux's inet_ntop(3).
addr-family-ipv6.lisp