commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [commons-net] nikunjb commented on issue #41: [NET-405] Support for IPv6 in SubnetUtils
Date Sun, 08 Sep 2019 03:07:53 GMT
nikunjb commented on issue #41: [NET-405] Support for IPv6 in SubnetUtils
URL: https://github.com/apache/commons-net/pull/41#issuecomment-529165234
 
 
   There is one more issue I have found. It breaks the IPV4 subnet lookup for range specs
with /32 also. In this case its not throwing an exception, but is not matching the exact IP.
This used to work before applying this patch.
   
   e.g. a test case like this is broken. The last assertTrue statement fails.
   
           utils = new SubnetUtils("192.168.0.1/32");
           utils.setInclusiveHostCount(true);
           info = utils.getInfo();
           assertEquals("255.255.255.255", info.getNetmask());
           assertTrue(info.isInRange("192.168.0.1"));
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message