h0arry / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

Bad netmask not reported as error #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
>>> x=ipaddr.IPv4Network( '192.168.1.1/240.255.0.0' )
>>> x
IPv4Network('192.168.1.1/16')

Parser allow a non-CIDR mask without raising an exception.

Original issue reported on code.google.com by Barnston...@gmail.com on 27 Sep 2009 at 8:09

GoogleCodeExporter commented 9 years ago
http://codereview.appspot.com/148042/show

Original comment by pmo...@google.com on 4 Nov 2009 at 4:17

GoogleCodeExporter commented 9 years ago
checked in r125 to fix this.

Original comment by pmo...@google.com on 18 Nov 2009 at 6:21