You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (Jira)" <ji...@apache.org> on 2021/01/28 15:11:00 UTC

[jira] [Resolved] (NET-698) SubnetInfo.isInRange doesn't handle /32 netmask properly

     [ https://issues.apache.org/jira/browse/NET-698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-698.
----------------------
    Resolution: Invalid

> SubnetInfo.isInRange doesn't handle /32 netmask properly
> --------------------------------------------------------
>
>                 Key: NET-698
>                 URL: https://issues.apache.org/jira/browse/NET-698
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 3.7.2
>            Reporter: Jon Schewe
>            Priority: Major
>
> I believe that this code should print out true, however it prints out false.
>  
> {code:java}
> final String address = "192.168.0.1";
> final SubnetUtils subnetUtils = new SubnetUtils(address, "255.255.255.255");
> System.out.println("In range? " + subnetUtils.getInfo().isInRange(address));{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)