Bug#656605: (Fwd) [rt.cpan.org #74192] libnetaddr-ip-perl: ip->addr() should follow RFC5952 Section 2.2 (Zero Compression)

gregor herrmann gregoa at debian.org
Sun Jan 22 12:33:25 UTC 2012


tag 656605 + upstream wontfix
thanks

----- Forwarded message from Michael Robinton via RT <bug-NetAddr-IP at rt.cpan.org> -----

From: Michael Robinton via RT <bug-NetAddr-IP at rt.cpan.org>
To: gregoa at debian.org
Subject: [rt.cpan.org #74192] libnetaddr-ip-perl: ip->addr() should follow RFC5952 Section 2.2 (Zero Compression)
Date: Fri, 20 Jan 2012 18:16:05 -0500
Reply-To: bug-NetAddr-IP at rt.cpan.org

<URL: https://rt.cpan.org/Ticket/Display.html?id=74192 >

The upper/lower case issue predates the RFC you refer to and its
immediate predecessors. When NetAddr::IP added support for IPV6, all the
rfc documentation showed addresses in UPPER case and did not specify a
preference for case. We opted to not change the standard way in which
NetAddr::IP does this so that we would not break anyone's existing code
that might be case sensitive. Instead, the pre-load directives :upper
and :lower were added so new code could use the newer rfc standard
notation if desired by simply including :lower in the 

use NetAdder::IP qw
  :lower
   whatever...
}

statement when invoking the NetAddr::IP module.

With respect to the section 2.2 compression. We consider this to be a
"pretty text" issue. In the sub module NetAddr::IP::InetBase, the
function "packzeros" will pretty up the text representation to conform
to 2.2 at the cost of many cpu cycles -- which is substantial beyond the
conversion of the binary IPV6 representation to text. For ordinary
processing of data, even in text form this is highly in-efficent so we
have not adopted compressed "pretty text" as a standard, opting instead
for quickly converted standard length strings. Programers wishing pretty
IPV6 strings at the expense of slower code can add the packzeros
function call to their programs that output text for human readers.

Best regards,
Michael

On Fri Jan 20 16:27:20 2012, GREGOA wrote:
> This bug has been forwarded from http://bugs.debian.org/656605

[..]

----- End forwarded message -----

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Eagles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120122/d5d50bf8/attachment.pgp>


More information about the pkg-perl-maintainers mailing list