Canonicalize IPv6 addresses as per RFC 5952 before printing them.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 5 Jul 2014 18:51:19 +0000 (19:51 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 5 Jul 2014 19:00:50 +0000 (20:00 +0100)
commitd0d01a44485ee04f60a8fccf9bdf8311e23ffa43
treec4e46c88e02a558bed5738f822436dc1cde52f32
parentdec0400714cc6b125f615c224ac37903f44addb9
Canonicalize IPv6 addresses as per RFC 5952 before printing them.

Currently we don't do any shortening on IPv6 addresses (aside from
removing trailing zeroes) before printing them. This commit makes
textual addresses smaller by shortening them according to the rules
described in RFC 5952. This is also the canonical textual representation
for IPv6 addresses, thus making them easier to compare.
src/subnet_parse.c