[ 
https://issues.apache.org/jira/browse/NET-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13833815#comment-13833815
 ] 

Daniel Scott edited comment on NET-511 at 11/27/13 2:05 PM:
------------------------------------------------------------

Patch to permit '0.0.0.0/0' cidr. It's not particularly elegant, because I had 
to add a special check for non-zero addresses with the /0 cidr. Still passes 
all existing unit tests and new test added.


was (Author: danieljamesscott):
Patch to permit '0.0.0.0/0' cidr.

> 0.0.0.0/0 CIDR check fails in subnet utils
> ------------------------------------------
>
>                 Key: NET-511
>                 URL: https://issues.apache.org/jira/browse/NET-511
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 3.3
>            Reporter: Kyriacos Elia
>            Priority: Minor
>         Attachments: permit_all_ips_cidr.patch
>
>
> The following example in SubnetUtils fails:
> SubnetUtils utils = new SubnetUtils("0.0.0.0/0")
> utils.getInfo().isInRange(anyValidIpAddress);
> As '0.0.0.0/0' is within the IPv4 specification, it should be supported.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to