Newer
Older
NetAddr-IP / Lite / Changes
@Michael Robinton Michael Robinton on 21 Oct 2014 10 KB Import of MIKER/NetAddr-IP-4.049 from CPAN.
  1. Revision history for Perl extension NetAddr::IP::Lite
  2.  
  3. 1.32 Sat Oct 15 22:05:23 PDT 2011
  4. bug68723, add capability to parse input of the form
  5. ->new6(12345,1). This should have been there but was
  6. missing. Thanks to Andrei Benea for spotting this.
  7. In Util v1.41
  8. add inet_pton, inet_ntop, AF_INET, AF_INET6
  9.  
  10. modify inet_n2dx and inet_n2ad to
  11. recognize the new 128 bit IPv4 format
  12. ::FFFF:FFFF:0:0
  13.  
  14. replace isIPv4 with a pure perl version for portablity
  15.  
  16. split the following into NetAddr::IP::InetBase v0.01
  17. to provide better long term support for IPv6
  18. inet_aton
  19. inet_ntoa
  20. ipv6_aton
  21. ipv6_n2x
  22. ipv6_n2d
  23. inet_any2n
  24. inet_n2dx
  25. inet_n2ad
  26. inet_ntop
  27. inet_pton
  28. packzeros
  29. isIPv4
  30. isNewIPv4
  31. isAnyIPv4
  32. AF_INET
  33. AF_INET6
  34.  
  35. 1.31 Sat Oct 8 01:33:44 PDT 2011
  36. remove debug print statement from Util.pm v1.40
  37.  
  38. 1.30 Thu Oct 6 23:41:42 PDT 2011
  39. correct internal variable reference in Util.pm 1.39
  40.  
  41. 1.29 Thu Oct 6 20:20:33 PDT 2011
  42. updated to UTIL 1.38
  43.  
  44. 1.28 Wed Apr 6 11:31:19 PDT 2011
  45. Update documentation on the use of "adding constants
  46. to an IP address".
  47.  
  48. 1.27 Tue Mar 22 15:26:02 PDT 2011
  49. Update Lite.pm to encompass treatment of /31 and /127
  50. point-to-point networks as described in RFC 3021
  51.  
  52. NOTE: for /31's and /127's
  53. this changes the behavior of the following methods:
  54. first returns the "network" address
  55. last returns the "broadcast" address
  56. nth index 0 returns "network" addr instead of undef
  57. nth index 1 returns "broadcast" addr instead of undef
  58. num returns 2 instead of 0 (zero)
  59.  
  60. "old_nth" behavior is unchanged
  61.  
  62. Thanks to Todd Caine todd.caine@gmail.com for pointing this out.
  63.  
  64. 1.26 Tue Mar 8 15:18:16 PST 2011
  65. Updated "sub num" to support usable IP ranges greater than 2**32
  66.  
  67. Thanks to Jan Ploski jan@plosquare.com for finding this bug
  68.  
  69. 1.25 Sat Feb 19 10:04:00 PST 2011
  70. correction to use of Util.pm package lexicals
  71.  
  72. thanks to mishikal@yahoo.com for spotting the bug and to
  73. Mark Martinec mark.martinec+ama...@ijs.si for the solution.
  74.  
  75. 1.24 Fri Dec 17 17:47:47 PST 2010
  76. Modify subs "new" and "new6" to accomodate
  77. Cisco mask syntax that uses space instead of "/" for a separator
  78. This eliminates the need for "new_cis" and "newcis6" which are now
  79. deprecated.
  80.  
  81. Modify t/v4-cnew.t and add t/v6-cnew.t to test the above
  82.  
  83. 1.23 Fri Nov 19 10:48:01 PST 2010
  84. add :upper and :lower to Lite.pm v1.23
  85. add comments about rfc5952 requirement for lowercase ipV6 notation
  86. add test for :lower
  87.  
  88. 1.22 Tue Nov 16 16:28:37 PST 2010
  89. update new6 to properly classify short ipv4 notation
  90. i.e. 127/8 with test for ":" rather than match for \d.\d.\d.\d
  91. thanks to Steve Huff (SHUFF) * shuff@cpan.org for
  92. spotting that bug.
  93.  
  94. update t/v4-new.t for deprecated array syntax in perl 5.13
  95. was: qw(...stuff...)
  96. is: (qw(...stuff...))
  97.  
  98. thanks to Todd Rinaldo <toddr@cpan.org> for reporting this
  99.  
  100. 1.21 Thu Oct 28 14:26:19 PDT 2010
  101. fix bug where new6 improperly assigns the mask value
  102. for and ipv4 address in 32 bit space instead of 128 bit space
  103.  
  104. Thanks to Mark Martinec and Steve Huff (SHUFF) * shuff@cpan.org
  105. for spotting and replicating that bug
  106.  
  107. added new_cis and new_cis6 to Lite.pm v1.21 to accomodate
  108. Cisco syntax that has IP and MASK seperated by a space.
  109.  
  110. Updated typo in documentation that left out example
  111. print new6 stuff
  112.  
  113. 1.20 Mon Oct 25 16:22:01 PDT 2010
  114. Updated _xnew to properly handle ipV6 notation of the form
  115. xxxx:xxxx:xxxx:xxxx:xxxx:xxxx, DDD
  116.  
  117. Thanks to Dusty Mabe <Dusty.Mabe@tekelec.com> for spotting this bug
  118.  
  119. 1.19 Wed Sep 29 10:32:50 PDT 2010
  120. Conditionalize import of AF_INET6 in Util.pm
  121. NetAddr::IP::UtilPolluted
  122.  
  123. 1.18 Wed Sep 22 13:39:08 PDT 2010
  124. Added overload => 'ne' and '!=' to Lite.pm
  125.  
  126. 1.17 Tue Sep 21 17:50:50 PDT 2010
  127. Pull Socket6 stuff out of Lite and put into
  128. NetAddr::IP::Util.pm in its own namespace
  129.  
  130. 1.16 Wed Aug 11 12:45:49 PDT 2010
  131. When using Socket6, pull in missing symbol PF_INET6, which may
  132. or may not be present, from Socket.
  133.  
  134. 1.15 Tue Jul 20 15:32:23 PDT 2010
  135. Resolve named hosts using gethostbyname, followed by gethostbyname6
  136. to determine whether to set ipV6 flag
  137.  
  138. Thanks to Dusty Mabe <Dusty.Mabe@tekelec.com> for spotting this bug
  139.  
  140. 1.14 Thu Jul 8 18:17:38 PDT 2010
  141. added support for the sub "new" to resolve host6 names
  142. if the OPTIONAL perl Socket6 module is available
  143.  
  144. 1.13 Tue Dec 9 16:00:35 PST 2008
  145. added missing regexp to classify arguments as BCD numbers,
  146. apparently this has been missing from NetAddr::IP::Lite
  147. since the first release.
  148. Thanks to Carlos Vicente cvicente@cpan.org for reporting this bug.
  149.  
  150. revised UtilPP v1.7 to work around perl 5.8.4
  151. failures with certain @_ operations of goto &sub...
  152. see perl bug [ 23429]. Unfortunately, perl-5.8.4 is
  153. the distribution of choice for many solaris boxes
  154.  
  155. 1.12 Sun Nov 23 19:32:59 PST 2008
  156. repaired missing sub Zeros
  157.  
  158. added minus (-) overloading to allow the subtraction
  159. of two NetAddr::IP objects to get the difference between
  160. the object->{addr}'s as a numeric value
  161. Thanks to Rob Riepel <riepel@networking.Stanford.EDU>
  162. for the initial code and inspiration for this enhancement
  163.  
  164. 1.11 Sat Nov 1 15:13:48 PST 2008
  165. add test for characters not allowed by rfc952 before
  166. the call to gethostbyname in sub new() for those people
  167. that insist on using deprecated functionality :aton
  168. and OS's that fail to notice calls to gethostbyname
  169. with binary arguments
  170.  
  171. 1.10 Wed Oct 22 14:54:12 PDT 2008
  172. add new no octal method for improperly formatted ipV4 addresses
  173.  
  174. In Util.pm v1.22, eliminated dependence on PL_sawampersand
  175. thanks to Mark Martinec <Mark.Martinec@ijs.si>
  176. for spotting this and submitting a patch.
  177.  
  178. In Util.pm v1.22, force -noxs mode for Win32
  179.  
  180. In Util.pm v1.22, use autoconf to configure 'C' build
  181.  
  182. 1.09 Thu Oct 16 19:35:33 PDT 2008
  183. again... clear build bug for Win32 in Util.pm v 1.21
  184.  
  185. 1.08 Sat Sep 27 12:27:28 PDT 2008
  186. in Util v0.19
  187. updated test for ENDIANess in siteconf
  188.  
  189. add test in inet_aton to detect overange IP dot quad values
  190. missed by some broken Socket implementations
  191. i.e. 256.1.1.1
  192.  
  193. 1.07 Tue Sep 2 19:09:57 PDT 2008
  194. in the off chance that NetAddr::IP::Lite objects are created
  195. and the caller later loads NetAddr::IP and expects to use
  196. those objects, let the AUTOLOAD routine find and redirect
  197. NetAddr::IP::Lite method and subroutine calls to NetAddr::IP.
  198.  
  199. updated t/v4-wnew.t so that non-existent
  200. domains are "really" not there
  201.  
  202. 1.06 Sat Jun 7 12:57:18 PDT 2008
  203. add method "new_from_aton" and related documentation
  204.  
  205. comparisons of the form <, >, <=, >=
  206. 10.0.0.0/24 {operator} 10.0.0.0/16
  207. return now return the comparison of the cidr value
  208. when the address portion is equal.
  209. NOTE: this comparison returns the comparison of the NUMERIC
  210. value of the CIDR. This produces the counter intuitive result
  211. that /24 > /16. There is logic to this, really! For proper
  212. operation of commands like "Compact" and "Coalesce", lists of
  213. netaddr objects must sort in ascending order. However, this
  214. conflicts with the requirement for larger netblocks to sort
  215. FIRST so as to include smaller ones. This logic extends to
  216. any requirement for a sort of netaddr objects. It should be
  217. further noted that the mixing of netaddr objects with varying
  218. IP addresses and CIDR allocations can lead to unexpected
  219. results since the comparisons done first on the IP portion
  220. and then on the CIDR portion. The documentation has been
  221. updated appropriately.
  222. Thanks to Peter DeVries for spotting this discrepancy
  223.  
  224. 1.05 undocumented
  225. 1.04 undocumented
  226.  
  227. 1.03 Sun Aug 6 10:48:25 PDT 2006
  228. update Util.pm v0.18 documentation
  229.  
  230. 1.02 Fri Aug 4 14:14:16 PDT 2006
  231. $isV6 global converted to a lexical variable within sub "_xnew"
  232. $Class global removed and replaced by calls to UNIVERSAL::isa
  233. Thanks to julian@mehnle.net for spotting problems related to
  234. using the Lite.pm with mod_perl
  235.  
  236. 1.01 Thu Jul 6 10:46:48 PDT 2006
  237. update v4-wnew.t to warn user of possible long wait
  238. update Util.pm v0.17 -- see Changes in that distro
  239.  
  240. 1.00 Mon Jun 26 13:34:00 PDT 2006
  241. changed behavior of ->nth and ->num
  242. to 'exactly' conform to the documentation
  243.  
  244. add :old_nth tag to preserve old behavior
  245. and update tests to check both
  246.  
  247. 0.12 Sun Jun 25 16:13:00 PDT 2006
  248. imported missing 'bcd2bin'
  249.  
  250. fixed Util->new() issues with long digit strings
  251. ->new('::fffff') and non hex digits ->new('::foo').
  252. Thanks to Radoslaw Zielinski <radek42@gmail.com>
  253. for spotting these 3 bugs
  254.  
  255. 0.11 Wed Jun 14 14:53:21 PDT 2006
  256. add 'sub new6' and related functionality to methods
  257. that print or return v4/6 information or text.
  258.  
  259. add $self->{isv6} flag for hint to ipV6 status
  260.  
  261. corrected bug in sub num that miscalculated the number
  262. of IP's in a net for /31 /32
  263.  
  264. 0.10 Tue Jun 13 14:07:46 PDT 2006
  265. bring 'sub new' into full compliance with NetAddr::IP,
  266. correct compatibility with for ==,>,<,=>,>=,<=>,cmp
  267. and update documentation to reflect actual implementation
  268.  
  269. add 'copy' function that return a completely new object
  270.  
  271. export (Zero Ones V4mask V4net)
  272.  
  273. update Util.pm v0.15 so shiftleft returns original
  274. argument when the shift count is zero or undefined
  275.  
  276. 0.09 Tue Jun 6 08:37:01 PDT 2006
  277. update Util/Makefile.PM to check for link libraries
  278. that ExtUtils::MakeMaker does not find properly
  279.  
  280. remove 'use warnings' from Lite.pm for backwards
  281. compatibility with older perl versions
  282.  
  283. 0.08 Tue Jun 6 08:33:11 PDT 2006
  284. update Util.xs for build on windoze
  285.  
  286. 0.07 Tue Jun 6 08:21:12 PDT 2006
  287. update NetAddr::IP::Util to v0.12
  288.  
  289. 0.06 Mon Jun 5 21:34:28 PDT 2006
  290. fix Sparc problems in Util v0.11
  291. 1) add workaround for OS's that do not have inet_aton
  292.  
  293. 2) add workaround for compilers that do not understand
  294. #if MACRO1 == MACRO2
  295.  
  296. 0.05 Sun May 7 18:06:43 PDT 2006
  297. updated UtilPP.pm v0.06 to remove unnecessary pack(unpack) sequences
  298. to speed up ipv6->4, ipv4->6 conversions
  299.  
  300. 0.04 Fri Apr 28 17:36:28 PDT 2006
  301. left Util/Makefile.pl out of the top level distro
  302.  
  303. 0.03 Fri Apr 28 17:26:51 PDT 2006
  304. oops! left prerequisite Util 0.08 in the Makefile
  305. when it is include in this distro
  306.  
  307. 0.02 Fri Apr 28 16:11:00 PDT 2006
  308. update Lite.pm to accept ->new('addr/mask')
  309. where addr and mask are both in IP address format
  310.  
  311. add test for above t/netaddr.t
  312.  
  313. 0.01 Wed Apr 26 19:03:18 PDT 2006
  314. initial release