You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gerry McLarnon (JIRA)" <ji...@apache.org> on 2010/08/03 12:52:18 UTC

[jira] Commented: (NET-262) SubnetUtils does not handle /31 and /32 CIDRs well

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

Gerry McLarnon commented on NET-262:
------------------------------------

Hi,

First of all may I apologise if this is not the appropriate route to  
contact you regarding the Apache Commons Net project.

Secondly I'd like to thank you for your work on the Commons Net. It  
has saved me a fair amount of work.

I have one question, is there a version 2.1 available for download as  
mentioned in https://issues.apache.org/jira/browse/NET-305 and other  
places that fix some CIDR notation issues?

I've come across a version created by you ... http://svn.apache.org/viewvc/commons/proper/net/tags/NET_2_1_r924745/src/main/java/org/apache/commons/net/util/SubnetUtils.java?view=markup

Thanks, gerry

gerry mclarnon
mclarnonworld
14 selborne road
glasgow g13 1qg
united kingdom

mob:    +44 (0) 7808 771940
tel:        +44 (0) 141 416 0189
fax:       +44 (0) 141 282 9704
web:     www.mclarnonworld.com
email:   gerry@mclarnonworld.com
skype:  gerrymclarnon







> SubnetUtils does not handle /31 and /32 CIDRs well
> --------------------------------------------------
>
>                 Key: NET-262
>                 URL: https://issues.apache.org/jira/browse/NET-262
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 3.0
>
>
> SubnetUtils does not handle /31 and /32 CIDRs well.
> This should be documented and/or fixed.
> 192.168.0.1/32 causes an IllegalArgumentException to be thrown (by the way, that should show the upper and lower bounds)
> 192.168.0.3/31 gives 
> addressCount=0, 
> low =192.168.0.3 
> high=192.168.0.2
> and 192.168.0.3 is rejected as not in range

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.