summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'alexf101-patch-1'Michael Shields2015-08-171-4/+7
|\
| * Merge branch 'patch-1' of https://github.com/alexf101/ipaddr-py into ↵Michael Shields2015-08-171-4/+7
| |\ |/ / | | | | alexf101-patch-1
| * Performance fix for collapse_addr_list.Alex Finkel2015-07-311-4/+7
| | | | | | Calling "ips.index(last)" inside a loop over all ips does O(n) linear searches, leading to quadratic performance. The index call isn't necessary; the position of 'last' in ips can be inferred if _find_address_range returns the position that it found 'last' at.
* | Fix typo.Michael Shields2015-08-171-1/+1
| |
* | Enable Travis.Michael Shields2015-08-171-0/+5
| |
* | Remove obsolete documentation on 1.x and 3.x ("3144").Michael Shields2015-08-172-385/+0
| | | | | | | | | | Documentation on the new module is now at: https://docs.python.org/3/library/ipaddress.html
* | Move trunk/ to root.Michael Shields2015-08-1711-3621/+351
| |
* | Convert README to Markdown, and update links.Michael Shields2015-08-171-3/+3
| |
* | Remove Subversion tags and branches.Michael Shields2015-08-17202-71955/+0
| |
* | Merge branch 'master' of github.com:google/ipaddr-pyMichael Shields2015-08-17217-0/+76235
|\ \ | |/
| * ipaddr: add the ability to create non-trivial IPv*Network objects via tuples.Peter Moody2014-07-262-82/+195
| | | | | | | | patch by pmarks.
| * from Paul Marks:Peter Moody2013-09-212-124/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code checks each octet separately, and then checks if the sequence of octets is nonincreasing. This is insufficient, because it allows nonsensical inputs like "255.128.128.0". The previous code also only partially handles hostmasks (inverted netmasks). "0.255.255.255" becomes /8, but 0.15.255.255 is rejected. The solution is to disregard octets, and interpret the address as a single sequence of bits. Note that this could be trivially extended to support IPv6 netmasks and hostmasks, but those are non-standard. I've also made the CIDR parser more strict, so it rejects anything that's not not a decimal digit, like /+24 Added: - _prefix_from_prefix_string: Parse a number, with bounds checking. - _prefix_from_ip_string: Parse IPv4 netmask/hostmask string. Improved: - _prefix_from_ip_int: Only accept inputs with the bit sequence /1*0*/. Removed: - _ip_string_from_prefix - _is_hostmask - _is_valid_netmask
| * ipaddr incorrectly parses some V6 addresses.Peter Moody2012-06-292-0/+3
| | | | | | | | issue97.
| * Docstring typo reported by Jason KeenePeter Moody2012-06-271-1/+1
| |
| * fix for issue:95, refer to nets in the exceptionPeter Moody2012-06-111-1/+1
| |
| * add license boilerplate to test-2to3.shPeter Moody2012-04-301-1/+15
| |
| * rename to ipaddress to avoid confusion with backwards-incompatible ipaddrPeter Moody2012-02-122-410/+410
| |
| * testing git push processPeter Moody2012-02-061-1/+1
| |
| * tag/release 2.1.10pmoody@google.com2012-01-2113-318/+3883
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@244 09200d28-7f98-11dd-ad27-0f66e57d2035
| * remove un-needed filepmoody@google.com2011-12-041-286/+0
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@243 09200d28-7f98-11dd-ad27-0f66e57d2035
| * Created wiki page through web user interface.pmoody@google.com2011-12-041-0/+261
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@242 09200d28-7f98-11dd-ad27-0f66e57d2035
| * start a new wiki page on using ipaddrpmoody@google.com2011-12-041-0/+286
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@241 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fix exploding network bugpmoody@google.com2011-12-042-3/+9
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@240 09200d28-7f98-11dd-ad27-0f66e57d2035
| * typopmoody@google.com2011-12-041-1/+1
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@239 09200d28-7f98-11dd-ad27-0f66e57d2035
| * patch r235 - r237 into the pep3144 branchpmoody@google.com2011-11-292-11/+20
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@238 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fixpmoody@google.com2011-11-292-11/+11
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@237 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fix for i84pmoody@google.com2011-11-242-0/+9
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@236 09200d28-7f98-11dd-ad27-0f66e57d2035
| * patch from pmarkspmoody@google.com2011-11-242-80/+67
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@235 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fix copyright. whoops. i90pmoody@google.com2011-09-221-1/+1
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@234 09200d28-7f98-11dd-ad27-0f66e57d2035
| * cleaning up docstringspmoody@google.com2011-09-221-19/+18
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@233 09200d28-7f98-11dd-ad27-0f66e57d2035
| * remove strict from the ipinterface classes and have the network code check ↵pmoody@google.com2011-09-092-19/+20
| | | | | | | | | | | | that host bits are not set prior to deleting the ip attribute git-svn-id: https://ipaddr-py.googlecode.com/svn@232 09200d28-7f98-11dd-ad27-0f66e57d2035
| * rename _BaseNetwork to _BaseInterface & add a network property to ↵pmoody@google.com2011-09-091-15/+22
| | | | | | | | | | | | _BaseInterface which return the network to which an interface belongs git-svn-id: https://ipaddr-py.googlecode.com/svn@231 09200d28-7f98-11dd-ad27-0f66e57d2035
| * finish rename from network -> network_address. do the same for the broadcast ↵pmoody@google.com2011-09-082-31/+31
| | | | | | | | | | | | address git-svn-id: https://ipaddr-py.googlecode.com/svn@230 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fix version string in the branchpmoody@google.com2011-09-081-1/+1
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@229 09200d28-7f98-11dd-ad27-0f66e57d2035
| * remove the ip attribute from the network objects. make collpase_address_list ↵pmoody@google.com2011-09-081-1/+38
| | | | | | | | | | | | work. still need to figure out how to handle type-promotion git-svn-id: https://ipaddr-py.googlecode.com/svn@228 09200d28-7f98-11dd-ad27-0f66e57d2035
| * add ip interface classes. needs more unit testspmoody@google.com2011-09-082-207/+256
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@227 09200d28-7f98-11dd-ad27-0f66e57d2035
| * progressing towards 3144 compliancepmoody@google.com2011-09-085-0/+3067
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@226 09200d28-7f98-11dd-ad27-0f66e57d2035
| * patch from pmarks for i87pmoody@google.com2011-08-222-222/+206
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@225 09200d28-7f98-11dd-ad27-0f66e57d2035
| * 2001:0::3:4:5:6:7:8 should be considered validpmoody@google.com2011-07-222-1/+5
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@224 09200d28-7f98-11dd-ad27-0f66e57d2035
| * issue 83, doc issuepmoody@google.com2011-05-171-6/+6
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@223 09200d28-7f98-11dd-ad27-0f66e57d2035
| * Edited wiki page ReleaseNotes through web user interface.pmoody@google.com2011-02-231-2/+2
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@222 09200d28-7f98-11dd-ad27-0f66e57d2035
| * + create/tag 2.1.9 release.pmoody@google.com2011-02-2313-106/+3699
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@221 09200d28-7f98-11dd-ad27-0f66e57d2035
| * + fix warnings for python3.2pmoody@google.com2011-02-201-98/+98
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@220 09200d28-7f98-11dd-ad27-0f66e57d2035
| * + add teredo test for i77pmoody@google.com2011-02-201-0/+7
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@219 09200d28-7f98-11dd-ad27-0f66e57d2035
| * + bug in _is_shorthand_ip not correctly identifying shortened ips.pmoody@google.com2011-02-172-5/+15
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@218 09200d28-7f98-11dd-ad27-0f66e57d2035
| * + typo.pmoody@google.com2011-02-131-1/+1
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@217 09200d28-7f98-11dd-ad27-0f66e57d2035
| * Tagging 2.1.8 releasemshields@google.com2011-02-099-0/+3532
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@216 09200d28-7f98-11dd-ad27-0f66e57d2035
| * Update release notes from wiki.mshields@google.com2011-02-091-0/+17
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@215 09200d28-7f98-11dd-ad27-0f66e57d2035
| * Edited wiki page Releasing through web user interface.mshields@google.com2011-02-091-1/+2
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@214 09200d28-7f98-11dd-ad27-0f66e57d2035
| * Edited wiki page ReleaseNotes through web user interface.mshields@google.com2011-02-091-1/+10
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@213 09200d28-7f98-11dd-ad27-0f66e57d2035