Don't print subnet prefix lengths and weights for one-host subnets.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 5 Jul 2014 18:02:02 +0000 (19:02 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 5 Jul 2014 19:00:50 +0000 (20:00 +0100)
commitdec0400714cc6b125f615c224ac37903f44addb9
tree55ffdd2db99acb779919a948e97d9ec920be9cd7
parentdc55691ca7399bab28963f92e4c3dea9d6bf8eb1
Don't print subnet prefix lengths and weights for one-host subnets.

This commit suppresses subnet prefix length output (/xx) for subnets
that only contain one address (/32 for IPv4, /128 for IPv6). It also
suppresses weight information if the subnet is using the default
weight. This improves readability of net2str() output in the majority
of cases.
src/subnet_parse.c