debian/0000755000000000000000000000000012251661022007163 5ustar debian/rules0000755000000000000000000000042612251661022010245 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_compress: cp Lite/Changes $(TMP)/usr/share/doc/$(PACKAGE)/changelog.Lite cp Lite/Util/Changes $(TMP)/usr/share/doc/$(PACKAGE)/changelog.Util dh_compress debian/control0000644000000000000000000000321712251661022010571 0ustar Source: libnetaddr-ip-perl Maintainer: Debian Perl Group Uploaders: Damyan Ivanov , gregor herrmann , Ryan Niebur , Maximilian Gass , Jonathan Yu , Nicholas Bamber , Xavier Guimard Section: perl Priority: optional Build-Depends: debhelper (>= 9.20120312), libsocket6-perl, libtest-pod-perl, perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libnetaddr-ip-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libnetaddr-ip-perl.git Homepage: https://metacpan.org/release/NetAddr-IP/ Package: libnetaddr-ip-perl Architecture: any Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends} Recommends: libsocket6-perl Description: IP address manipulation module NetAddr::IP provides an object-oriented abstraction on top of IP addresses or IP subnets, that allows for easy manipulations. . The internal representation of all IP objects is in 128 bit IPv6 notation. IPv4 and IPv6 objects may be freely mixed. . The following operations are supported: Basic IP conversion, netmask manipulation, subnet interpretation, bitwise mask generation, full mask generation, subnet manipulation, expansion, and range operations, sub/supernet tests, data type determination, and more complex operations such as expansion of netblocks into arrays of smaller blocks of arbitrary size, and CIDR block aggregation debian/source/0000755000000000000000000000000012251661022010463 5ustar debian/source/format0000644000000000000000000000001412251661022011671 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000003252512251661022011044 0ustar libnetaddr-ip-perl (4.071+dfsg-1) unstable; urgency=low [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ Xavier Guimard ] * Imported Upstream version 4.066 * Bump Standards-Version to 3.9.4 * Update debian/copyright: + encoding to UTF-8 + add myself and Salvatore [ gregor herrmann ] * New upstream release 4.071. * Update debian/repack.stub. * Add copyright/license for debian/repack.stub. * Update years of upstream and packaging copyright. * Install new About-NetAddr-IP.txt document. * Declare compliance with Debian Policy 3.9.5. -- gregor herrmann Tue, 10 Dec 2013 19:48:37 +0100 libnetaddr-ip-perl (4.062+dfsg-1) unstable; urgency=low * New upstream release. -- gregor herrmann Fri, 08 Jun 2012 23:26:56 +0200 libnetaddr-ip-perl (4.061+dfsg-1) unstable; urgency=low * New upstream release. -- gregor herrmann Sat, 26 May 2012 20:39:34 +0200 libnetaddr-ip-perl (4.059+dfsg-1) unstable; urgency=low * New upstream release. * Remove spelling.patch, applied upstream. * Update years of packaging copyright. * debian/copyright: update to Copyright-Format 1.0. * Bump Standards-Version to 3.9.3 (no changes). * Use debhelper 9.20120312 for getting all hardening flags. -- gregor herrmann Sun, 18 Mar 2012 17:21:38 +0100 libnetaddr-ip-perl (4.058+dfsg-2) unstable; urgency=low * Remove Julian Mehnle from Uploaders as per request of the MIA team. -- gregor herrmann Tue, 27 Dec 2011 18:32:01 +0100 libnetaddr-ip-perl (4.058+dfsg-1) unstable; urgency=low * Team upload. * New upstream release. * Refresh spelling.patch patch. -- Julián Moreno Patiño Mon, 14 Nov 2011 10:06:17 -0500 libnetaddr-ip-perl (4.056+dfsg-1) unstable; urgency=low * Team upload. * New upstream release. (Closes: #601601) * Update copyright file to DEP5 rev 174. + Add /me to Copyright. + Update copyright holders/years. -- Julián Moreno Patiño Mon, 07 Nov 2011 02:36:07 -0500 libnetaddr-ip-perl (4.049+dfsg-1) unstable; urgency=low * New upstream release. * debian/copyright: update upstream copyright years and licenses. * Refresh lite_makefile.patch. * Add libsocket6-perl to Build-Depends and Recommends. * Add a patch to fix a spelling mistake. -- gregor herrmann Thu, 20 Oct 2011 19:59:45 +0200 libnetaddr-ip-perl (4.048+dfsg-1) unstable; urgency=low * Team upload. * Imported Upstream version 4.048+dfsg -- Salvatore Bonaccorso Sun, 09 Oct 2011 08:22:25 +0200 libnetaddr-ip-perl (4.047+dfsg-1) unstable; urgency=low [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Salvatore Bonaccorso ] * debian/copyright: Replace DEP5 Format-Specification URL from svn.debian.org to anonscm.debian.org URL. [ gregor herrmann ] * New upstream release. * Update years of packaging copyright. * Bump debhelper compatibility level to 8. * Refresh lite_makefile.patch. -- gregor herrmann Fri, 07 Oct 2011 14:34:38 +0200 libnetaddr-ip-perl (4.044+dfsg-1) unstable; urgency=low * New upstream release * Raised standards version to 3.9.2 -- Nicholas Bamber Thu, 19 May 2011 19:45:24 +0100 libnetaddr-ip-perl (4.042+dfsg-1) unstable; urgency=low * New upstream release -- Nicholas Bamber Wed, 23 Mar 2011 14:13:35 +0000 libnetaddr-ip-perl (4.041+dfsg-1) unstable; urgency=low * New upstream release -- Nicholas Bamber Wed, 09 Mar 2011 16:54:21 +0000 libnetaddr-ip-perl (4.040+dfsg-1) unstable; urgency=low * New upstream release -- Nicholas Bamber Mon, 21 Feb 2011 15:42:40 +0000 libnetaddr-ip-perl (4.039+dfsg-1) unstable; urgency=low * New upstream release * Updated copyright -- Nicholas Bamber Sat, 19 Feb 2011 15:40:06 +0000 libnetaddr-ip-perl (4.038+dfsg-1) unstable; urgency=low * New upstream release -- Nicholas Bamber Thu, 23 Dec 2010 08:03:54 +0000 libnetaddr-ip-perl (4.037+dfsg-1) unstable; urgency=low * New upstream release * Removed spelling, autosplit and spamassasin patches as they are applied upstream -- Nicholas Bamber Sun, 21 Nov 2010 00:40:25 +0000 libnetaddr-ip-perl (4.035+dfsg-4) unstable; urgency=low * Uploading to unstable because: - Positive feedack for IPv6 issue patches (cf. #601601) - No negative feedback for autosplit/our patch (cf. #517361) -- Nicholas Bamber Tue, 16 Nov 2010 20:00:40 +0000 libnetaddr-ip-perl (4.035+dfsg-3) experimental; urgency=low * Forwarding patch upstream for further investigation (cf. #517361) * Added patch for spamassassin issues (cf. #601601) - Added Noah Meyerhans' test.pl as a test script - Integrated patch from paul@city-fan.org - Added Steve Huffs test v4-to-v6.t -- Nicholas Bamber Sun, 07 Nov 2010 21:08:27 +0000 libnetaddr-ip-perl (4.035+dfsg-2) experimental; urgency=low * Experimental fix for our/autosplit incompatibility (cf. #517361) * Removed patch file (pod_missing_string.patch) that is not in use * Refreshed patch (lite_makefile.patch) as an additonal README is being overwritten in source -- Nicholas Bamber Tue, 01 Nov 2010 19:23:22 +0000 libnetaddr-ip-perl (4.035+dfsg-1) unstable; urgency=low * New upstream release (Closes: #508775) * Tests show that this Closes: #601601. * Refreshed and removed patches where fixed upstream, cf. #565563 -- Nicholas Bamber Fri, 29 Oct 2010 22:08:34 +0100 libnetaddr-ip-perl (4.034+dfsg-1) unstable; urgency=low * New upstream release -- Nicholas Bamber Tue, 26 Oct 2010 09:31:15 +0100 libnetaddr-ip-perl (4.033+dfsg-1) unstable; urgency=low [ gregor herrmann ] * Set Standards-Version to 3.9.1. [ Nicholas Bamber ] * New upstream release * Added myself to Uploaders * Refreshed copyright * Reviewed and forwarded spelling patch * Remove Conflicts clause - cannot find libnetaddr-ip-lite-perl * Added patch for missing IPv6 string (Closes: #565563) * Added patch to stop overwriting Lite/README [ gregor herrmann ] * Remove README.Debian, which contained hints for pre-lenny versions. -- Nicholas Bamber Fri, 15 Oct 2010 09:25:32 +0100 libnetaddr-ip-perl (4.028+dfsg-1) unstable; urgency=low [ Ryan Niebur ] * New upstream release * Add myself to Uploaders * Debian Policy 3.8.2 * Update ryan52's email address [ Maximilian Gass ] * Add myself to uploaders * Simplify debian/rules * Bumped Standards-Version to 3.8.3 (removed version on perl build-dependency) [ Jonathan Yu ] * New upstream release (closes: #485050) * Standards-Version 3.8.4 (no changes) * Use new 3.0 (quilt) source format * Add myself to Uploaders and Copyright [ gregor herrmann ] * debian/copyright: update formatting and years of copyright. * Add a patch to fix a spelling mistake. -- gregor herrmann Mon, 24 May 2010 17:15:33 +0200 libnetaddr-ip-perl (4.024+dfsg-1) unstable; urgency=low * New upstream release. * debian/rules: add get-orig-source target. * debian/control: slightly improve short description. -- gregor herrmann Sun, 01 Feb 2009 16:50:31 +0100 libnetaddr-ip-perl (4.023+dfsg-1) unstable; urgency=low * New upstream release. * Update years of packaging copyright. -- gregor herrmann Sat, 17 Jan 2009 23:22:46 +0100 libnetaddr-ip-perl (4.022+dfsg-1) unstable; urgency=low * New upstream release. -- gregor herrmann Sun, 21 Dec 2008 23:59:27 +0100 libnetaddr-ip-perl (4.021+dfsg-1) unstable; urgency=low [ Franck Joncourt ] * Replace uversionmangle by dversionmangle in debian/watch. + Refreshed repack.pl script. + This fixes the following lintian warning: http://lintian.debian.org/tags/debian-watch-file-should-dversionmangle\ -not-uversionmangle.html [ gregor herrmann ] * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). * New upstream release. * Remove patch 10_special-chars-to-utf8.patch, not needed any more. Remove quilt framework and debian/README.source. * debian/copyright: switch to new format and mention how the +dfsg version is created. * Don't install upstream READMEs anymore, they are just text versions of the POD documentation. Install TODO instead. * Set debhelper compatibility level to 7; adapt debian/{control,compat,rules}. * Add /me to Uploaders. * debian/control: mention module name in long description. -- gregor herrmann Tue, 16 Dec 2008 17:44:26 +0100 libnetaddr-ip-perl (4.011+dfsg-1) unstable; urgency=low [ gregor herrmann ] * Add debian/README.source to document quilt usage, as required by Debian Policy since 3.8.0. [ Gunnar Wolf ] * New upstream release * Standards-version -> 3.8.0 * Changed the wording on debian/copyright so it complies with Debian's guidelines (i.e. explicit "Copyright" instead of (c)) -- Gunnar Wolf Sun, 12 Oct 2008 18:50:01 -0500 libnetaddr-ip-perl (4.007+dfsg-2) unstable; urgency=low [ Joey Hess ] * Fix watch file to deal with mangled version number. [ gregor herrmann ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Removed: XS- Vcs-Svn fields. * debian/watch: use dist-based URL. * debian/rules: delete /usr/share/perl5 only if it exists. [ Damyan Ivanov ] * debian/repack.sh: added to ease stripping of docs/rfc1884.txt * debian/watch: use such mangling that thhe package version ends up with +dfsg + call debian/repack.sh on downloading upstream source * debian/rules: + move test suite from install to build target + use "$@" when touching stamps + clean stamps before realclean + make install target depend only on install-stamp and that - on build-stamp + drop unneeded calls to dh_installman and dh_link * debian/copyright: + use dist-based upstream URL + add years of copyright * Convert in-diff patches to quilt + use UTF-8-encoded chars instead of E * Standards-Version: 3.7.3 (no changes) * debhelper compatibility level 6 * add myself to Uploaders -- Damyan Ivanov Wed, 23 Jan 2008 16:26:44 +0200 libnetaddr-ip-perl (4.007+dfsg-1) unstable; urgency=low * Repackaged upstream sources without including the non-free RFC 1884 (Closes: #431090) * Included README.Debian warning about requiring an API compatibility mode when using with legacy (<3.21) code (taken straight from Makefile.PL's output) -- Gunnar Wolf Tue, 03 Jul 2007 10:45:18 -0500 libnetaddr-ip-perl (4.007-1) unstable; urgency=low [ Julian Mehnle ] * New upstream release (closes: #329644). * Architecture: any (was: all), as this package now includes XS code. * Standards-Version: 3.7.2 * Build-Depends: libtest-pod-perl * Build-Depends: debhelper (was: Build-Depends-Indep:) * Raised debhelper compatibility level to 5, adjusted Build-Depends. * Updated debian/rules to latest dh-make-perl template. * Run tests during package building. * Generate perlapi and libc6 dependencies using dh_shlibdeps. * Conflicts: libnetaddr-ip-lite-perl, as NetAddr::IP::Lite is now included in this package. * Updated package description. * Updated debian/copyright with additional upstream author and new warranty statement. * Install all upstream README files and changelogs. * Added debian/{compat,watch} files. * Minor changes to NetAddr::IP{,::Lite} POD code to correctly represent the author names in the generated man-pages. [ Gunnar Wolf ] * Hijacking module on behalf of the Debian Pkg-perl group (previous maintainer MIA) -- Gunnar Wolf Thu, 28 Jun 2007 11:28:58 -0500 libnetaddr-ip-perl (3.14-2) unstable; urgency=low * Changed section to 'perl' -- Elie Rosenblum Tue, 26 Aug 2003 14:48:25 -0400 libnetaddr-ip-perl (3.14-1) unstable; urgency=low * New upstream version * Fixed build to happen in binary-indep rather than binary-arch -- Elie Rosenblum Tue, 26 Aug 2003 07:49:49 -0400 libnetaddr-ip-perl (3.11-1) unstable; urgency=low * Included all changes from patch by Ivan Kohler * Build binary-indep, not binary-arch (closes: #157491) * New upstream version (closes: #142576, #161625) * Added maint name to copyright file (closes: #157522) -- Elie Rosenblum Sun, 22 Sep 2002 13:27:17 -0400 libnetaddr-ip-perl (3.07-1) unstable; urgency=low * New upstream version (fixes #142576) -- Elie Rosenblum Mon, 15 Apr 2002 12:46:09 -0400 libnetaddr-ip-perl (2.24-1) unstable; urgency=low * New upstream release fixes potential license problem and adds requested functionality. -- Elie Rosenblum Mon, 27 Aug 2001 20:42:55 -0400 libnetaddr-ip-perl (2.23-1) unstable; urgency=low * Initial Release. -- Elie Rosenblum Fri, 24 Aug 2001 10:01:14 -0400 debian/libnetaddr-ip-perl.docs0000644000000000000000000000003212251661022013506 0ustar TODO About-NetAddr-IP.txt debian/compat0000644000000000000000000000000212251661022010361 0ustar 9 debian/patches/0000755000000000000000000000000012251661022010612 5ustar debian/patches/series0000644000000000000000000000002412251661022012023 0ustar lite_makefile.patch debian/patches/lite_makefile.patch0000644000000000000000000002654612251661022014442 0ustar Subject: stop overriting Lite/README Forwarded: not-needed Author: Nicholas Bamber Reviewed-by: gregor herrmann Last-Update: 2011-10-20 --- a/Lite/Makefile.PL +++ b/Lite/Makefile.PL @@ -17,26 +17,26 @@ 'dist' => {COMPRESS=>'gzip', SUFFIX=>'gz'} ); -sub MY::top_targets { - package MY; - my $inherited = shift->SUPER::top_targets(@_); - $inherited =~ s/(pure_all\s+::.+)/$1 README/; - $inherited; -} +#sub MY::top_targets { +# package MY; +# my $inherited = shift->SUPER::top_targets(@_); +# $inherited =~ s/(pure_all\s+::.+)/$1 README/; +# $inherited; +#} -sub MY::post_constants { - my $post_constants = q| -MY_POD2TEXT = |. $Config{scriptdirexp} .'/pod2text' .q| -|; -} +#sub MY::post_constants { +# my $post_constants = q| +#MY_POD2TEXT = |. $Config{scriptdirexp} .'/pod2text' .q| +#|; +#} -sub MY::postamble { - package MY; - my $postamble = q| -README : |. $module .q| - @$(MY_POD2TEXT) |. $module .q| > README - -|; -} +##sub MY::postamble { +# package MY; +# my $postamble = q| +#README : |. $module .q| +# @$(MY_POD2TEXT) |. $module .q| > README +# +#|; +#} WriteMakefile(%makeparms); --- a/Lite/Util/README +++ b/Lite/Util/README @@ -137,39 +137,45 @@ ::x:d.d.d.d and so on... - * $dotquad = inet_ntoa($netaddr); + * $dotquad = inet_ntoa($netaddr); + Convert a packed IPv4 network address to a dot-quad IP address. input: packed network address returns: IP address i.e. 10.4.12.123 - * $netaddr = inet_aton($dotquad); + * $netaddr = inet_aton($dotquad); + Convert a dot-quad IP address into an IPv4 packed network address. input: IP address i.e. 192.5.16.32 returns: packed network address - * $ipv6addr = ipv6_aton($ipv6_text); + * $ipv6addr = ipv6_aton($ipv6_text); + Takes an IPv6 address of the form described in rfc1884 and returns a 128 bit binary RDATA string. input: ipv6 text returns: 128 bit RDATA string - * $ipv6_text = ipv6_ntoa($ipv6naddr); + * $ipv6_text = ipv6_ntoa($ipv6naddr); + Convert a 128 bit binary IPv6 address to compressed rfc 1884 text representation. input: 128 bit RDATA string returns: ipv6 text - * $hex_text = ipv6_n2x($ipv6addr); + * $hex_text = ipv6_n2x($ipv6addr); + Takes an IPv6 RDATA string and returns an 8 segment IPv6 hex address input: 128 bit RDATA string returns: x:x:x:x:x:x:x:x - * $dec_text = ipv6_n2d($ipv6addr); + * $dec_text = ipv6_n2d($ipv6addr); + Takes an IPv6 RDATA string and returns a mixed hex - decimal IPv6 address with the 6 uppermost chunks in hex and the lower 32 bits in dot-quad representation. @@ -177,7 +183,8 @@ input: 128 bit RDATA string returns: x:x:x:x:x:x:d.d.d.d - * $ipv6naddr = inet_any2n($dotquad or $ipv6_text); + * $ipv6naddr = inet_any2n($dotquad or $ipv6_text); + This function converts a text IPv4 or IPv6 address in text format in any standard notation into a 128 bit IPv6 string address. It prefixes any dot-quad address (if found) with '::' and passes it to @@ -186,7 +193,8 @@ input: dot-quad or rfc1844 address returns: 128 bit IPv6 string - * $rv = hasbits($bits128); + * $rv = hasbits($bits128); + This function returns true if there are one's present in the 128 bit string and false if all the bits are zero. @@ -206,7 +214,8 @@ input: 128 bit IPv6 string returns: true if any bits are present - * $ipv6naddr = inet_4map6($netaddr or $ipv6naddr + * $ipv6naddr = inet_4map6($netaddr or $ipv6naddr + This function returns an ipV6 network address with the first 80 bits set to zero and the next 16 bits set to one, while the last 32 bits are filled with the ipV4 address. @@ -222,7 +231,8 @@ ::ffff::d.d.d.d or ::d.d.d.d - * $rv = isIPv4($bits128); + * $rv = isIPv4($bits128); + This function returns true if there are no on bits present in the IPv6 portion of the 128 bit string and false otherwise. @@ -230,17 +240,20 @@ Note: this is an old and deprecated ipV4 compatible ipV6 address - * $rv = isNewIPv4($bits128); + * $rv = isNewIPv4($bits128); + This function return true if the IPv6 128 bit string is of the form ::ffff::d.d.d.d - * $rv = isAnyIPv4($bits128); + * $rv = isAnyIPv4($bits128); + This function return true if the IPv6 bit string is of the form ::d.d.d.d or ::ffff::d.d.d.d - * $dotquad or $hex_text = inet_n2dx($ipv6naddr); + * $dotquad or $hex_text = inet_n2dx($ipv6naddr); + This function does the right thing and returns the text for either a dot-quad IPv4 or a hex notation IPv6 address. @@ -248,7 +261,8 @@ returns: ddd.ddd.ddd.ddd or x:x:x:x:x:x:x:x - * $dotquad or $dec_text = inet_n2ad($ipv6naddr); + * $dotquad or $dec_text = inet_n2ad($ipv6naddr); + This function does the right thing and returns the text for either a dot-quad IPv4 or a hex::decimal notation IPv6 address. @@ -256,31 +270,36 @@ returns: ddd.ddd.ddd.ddd or x:x:x:x:x:x:ddd.ddd.ddd.dd - * $netaddr = inet_pton($AF_family,$hex_text); + * $netaddr = inet_pton($AF_family,$hex_text); + This function takes an IP address in IPv4 or IPv6 text format and converts it into binary format. The type of IP address conversion is controlled by the FAMILY argument. - * $hex_text = inet_ntop($AF_family,$netaddr); + * $hex_text = inet_ntop($AF_family,$netaddr); + This function takes and IP address in binary format and converts it into text format. The type of IP address conversion is controlled by the FAMILY argument. NOTE: inet_ntop ALWAYS returns lowercase characters. - * $hex_text = packzeros($hex_text); + * $hex_text = packzeros($hex_text); + This function optimizes and rfc 1884 IPv6 hex address to reduce the number of long strings of zero bits as specified in rfc 1884, 2.2 (2) by substituting :: for the first occurence of the longest string of zeros in the address. - * $ipv6naddr = ipv4to6($netaddr); + * $ipv6naddr = ipv4to6($netaddr); + Convert an ipv4 network address into an IPv6 network address. input: 32 bit network address returns: 128 bit network address - * $ipv6naddr = mask4to6($netaddr); + * $ipv6naddr = mask4to6($netaddr); + Convert an ipv4 network address/mask into an ipv6 network mask. input: 32 bit network/mask address @@ -288,28 +307,32 @@ NOTE: returns the high 96 bits as one's - * $ipv6naddr = ipanyto6($netaddr); + * $ipv6naddr = ipanyto6($netaddr); + Similar to ipv4to6 except that this function takes either an IPv4 or IPv6 input and always returns a 128 bit IPv6 network address. input: 32 or 128 bit network address returns: 128 bit network address - * $ipv6naddr = maskanyto6($netaddr); + * $ipv6naddr = maskanyto6($netaddr); + Similar to mask4to6 except that this function takes either an IPv4 or IPv6 netmask and always returns a 128 bit IPv6 netmask. input: 32 or 128 bit network mask returns: 128 bit network mask - * $netaddr = ipv6to4($pv6naddr); + * $netaddr = ipv6to4($pv6naddr); + Truncate the upper 96 bits of a 128 bit address and return the lower 32 bits. Returns an IPv4 address as returned by inet_aton. input: 128 bit network address returns: 32 bit inet_aton network address - * $bitsXn = shiftleft($bits128,$n); + * $bitsXn = shiftleft($bits128,$n); + input: 128 bit string variable, number of shifts [optional] returns: bits X n shifts @@ -317,7 +340,8 @@ NOTE: a single shift is performed if $n is not specified - * addconst($ipv6naddr,$signed_32con); + * addconst($ipv6naddr,$signed_32con); + Add a signed constant to a 128 bit string variable. input: 128 bit IPv6 string, @@ -325,7 +349,8 @@ returns: scalar carry array (carry, result) - * add128($ipv6naddr1,$ipv6naddr2); + * add128($ipv6naddr1,$ipv6naddr2); + Add two 128 bit string variables. input: 128 bit string var1, @@ -333,7 +358,8 @@ returns: scalar carry array (carry, result) - * sub128($ipv6naddr1,$ipv6naddr2); + * sub128($ipv6naddr1,$ipv6naddr2); + Subtract two 128 bit string variables. input: 128 bit string var1, @@ -347,7 +373,8 @@ i.e. if ARG1 >= ARG2 then carry = 1 or if ARG1 < ARG2 then carry = 0 - * ($spurious,$cidr) = notcontiguous($mask128); + * ($spurious,$cidr) = notcontiguous($mask128); + This function counts the bit positions remaining in the mask when the rightmost '0's are removed. @@ -358,27 +385,31 @@ contiguous one's, 128 bit cidr number - * $bcdtext = bin2bcd($bits128); + * $bcdtext = bin2bcd($bits128); + Convert a 128 bit binary string into binary coded decimal text digits. input: 128 bit string variable returns: string of bcd text digits - * $bits128 = bcd2bin($bcdtxt); + * $bits128 = bcd2bin($bcdtxt); + Convert a bcd text string to 128 bit string variable input: string of bcd text digits returns: 128 bit string variable - * $modetext = mode; + * $modetext = mode; + Returns the operating mode of this module. input: none returns: "Pure Perl" or "CC XS" - * ($name,$aliases,$addrtype,$length,@addrs)=naip_gethostbyname(NAME); + * ($name,$aliases,$addrtype,$length,@addrs)=naip_gethostbyname(NAME); + Replacement for Perl's gethostbyname if Socket6 is available In ARRAY context, returns a list of five elements, the hostname or @@ -405,15 +436,18 @@ For a gethostbyname2 emulator that behave like Socket6, see: the Net::DNS::Dig manpage - * $trueif = havegethostbyname2(); + * $trueif = havegethostbyname2(); + This function returns TRUE if Socket6 has a functioning gethostbyname2, otherwise it returns FALSE. See the comments above about the behavior of naip_gethostbyname. - * NetAddr::IP::Util::lower(); + * NetAddr::IP::Util::lower(); + Return IPv6 strings in lowercase. - * NetAddr::IP::Util::upper(); + * NetAddr::IP::Util::upper(); + Return IPv6 strings in uppercase. This is the default. EXAMPLES @@ -457,6 +491,7 @@ return ($vecip, $mask, $bits); } + ... elsewhere $nip = { addr => $vecip, debian/copyright0000644000000000000000000000411012251661022011112 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: NetAddr-IP Upstream-Contact: Michael Robinton Source: https://metacpan.org/release/NetAddr-IP/ Comment: The +dfsg version is created by removing the non-free RFC from the docs/ directory. debian/repack.sh automates this process. Files: * Copyright: 1999-2007, Luis E. Muñoz 2003-2013, Michael Robinton License: Artistic or GPL-2+ Files: debian/* Copyright: 2001-2003, Elie Rosenblum 2003, Elie Rosenblum 2007-2008, Gunnar Wolf 2008-2013, gregor herrmann 2008, Damyan Ivanov 2010-2011, Nicholas Bamber 2011, Julián Moreno Patiño 2011, Salvatore Bonaccorso 2013, Xavier Guimard License: Artistic or GPL-1+ Files: debian/repack.stub Copyright: 2009, Ryan Niebur License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/repack.local0000644000000000000000000000003012251661022011435 0ustar MANIFEST=1 rm docs/rfc* debian/watch0000644000000000000000000000022212251661022010210 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ https://metacpan.org/release/NetAddr-IP/ .*/NetAddr-IP-v?(\d[\d.]*)\.tar\.gz debian debian/repack.stub debian/repack.stub0000755000000000000000000000346412251661022011341 0ustar #!/bin/sh : <<=cut =pod =head1 NAME repack.stub - script to repack upstream tarballs from uscan =head1 INSTRUCTIONS put this in debian/repack.stub and add "debian sh debian/repack.stub" to the end of the line in debian/watch. you will also need to add a version mangle to debian/watch. then create a debian/repack.local. this is a shell script that is sourced under "set -e", so be careful to check returns codes. =head1 FUNCTIONS =over 4 =item rm rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1 =item mv mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1 =item requires_version requires_version is there for future usage for requiring certain versions of the script =back =head1 VARIABLES =over 4 =item SUFFIX defaults to +dfsg what to append to the upstream version =item RM_OPTS defaults to -vrf options to pass to rm =item MANIFEST defaults to 0, set to 1 to turn on. this will manipulate MANIFEST files in CPAN tarballs. =item UP_BASE this is the directory where the upstream source is. =back =head1 COPYRIGHT AND LICENSE Copyright 2009, Ryan Niebur License: Artistic or GPL-1+ =cut if [ -z "$REPACK_SH" ]; then if [ -f ../../scripts/repack.sh ]; then REPACK_SH=../../scripts/repack.sh fi if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then REPACK_SH=$(which repack.sh) fi fi if [ ! -f "$REPACK_SH" ]; then echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable" echo "You can get it from http://anonscm.debian.org/gitweb/?p=pkg-perl/scripts.git;a=blob_plain;f=repack.sh;hb=HEAD" exit 1 fi exec "$REPACK_SH" "$@"