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

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

Jon Schewe created NET-698:
------------------------------

             Summary: 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


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)