Bug#656605: libnetaddr-ip-perl: ip->addr() should follow RFC5952 Section 2.2 (Zero Compression)
Florian Lohoff
f at zz.de
Wed Jan 18 10:34:18 UTC 2012
Package: libnetaddr-ip-perl
Version: 4.058+dfsg-2
Severity: normal
Hi,
libnetaddr-ip-perls ->addr function should follow the recommended representation in RFC5952,
not only print lowercase as default (i have seen the qw(:lower) switch) but also use
maximum zero compression as in 2.2 of the RFC5952:
--------------------------------------- quote -----------------------------------
2.2. Zero Compression
'A special syntax is available to compress the zeros. The use of
"::" indicates one or more groups of 16 bits of zeros.'
It is possible to select whether or not to omit just one 16-bit 0
field.
2001:db8:aaaa:bbbb:cccc:dddd::1
2001:db8:aaaa:bbbb:cccc:dddd:0:1
In cases where there is more than one field of only zeros, there is a
choice of how many fields can be shortened.
2001:db8:0:0:0::1
2001:db8:0:0::1
2001:db8:0::1
2001:db8::1
In addition, Section 2.2 of [RFC4291] notes,
'The "::" can only appear once in an address.'
This gives a choice on where in a single address to compress the
zero.
2001:db8::aaaa:0:0:1
2001:db8:0:0:aaaa::1
--------------------------------------- quote -----------------------------------
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libnetaddr-ip-perl depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii perl 5.10.1-17squeeze2 Larry Wall's Practical Extraction
ii perl-base [perlapi-5.1 5.10.1-17squeeze2 minimal Perl system
Versions of packages libnetaddr-ip-perl recommends:
ii libsocket6-perl 0.23-1 Perl extensions for IPv6
libnetaddr-ip-perl suggests no packages.
-- no debconf information
More information about the pkg-perl-maintainers
mailing list