You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Marc Lefrancois (JIRA)" <ji...@apache.org> on 2011/04/18 21:16:05 UTC

[jira] [Created] (NET-405) Support for IPv6 in SubnetUtils

Support for IPv6 in SubnetUtils
-------------------------------

                 Key: NET-405
                 URL: https://issues.apache.org/jira/browse/NET-405
             Project: Commons Net
          Issue Type: Improvement
            Reporter: Marc Lefrancois


Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device only are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NET-405) Support for IPv6 in SubnetUtils

Posted by "Mickaël Tricot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13422406#comment-13422406 ] 

Mickaël Tricot commented on NET-405:
------------------------------------

@Sebb: Sorry, I don't feel good enough with IPv4/v6 to give a good test sample for this issue.
@Ricardo: My previous comment on this issue might help you.
                
> Support for IPv6 in SubnetUtils
> -------------------------------
>
>                 Key: NET-405
>                 URL: https://issues.apache.org/jira/browse/NET-405
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (NET-405) Support for IPv6 in SubnetUtils

Posted by "Ricardo F. Teixeira (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13422389#comment-13422389 ] 

Ricardo F. Teixeira commented on NET-405:
-----------------------------------------

Are there any plans to support IPv6?
Does anyone know any solution that works similarly to {{SubnetUtils}} that can handle both IPv4 and IPv6. If you do, could you please forward the reference to me?
Thanks!
                
> Support for IPv6 in SubnetUtils
> -------------------------------
>
>                 Key: NET-405
>                 URL: https://issues.apache.org/jira/browse/NET-405
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (NET-405) Support for IPv6 in SubnetUtils

Posted by "Marc Lefrancois (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021183#comment-13021183 ] 

Marc Lefrancois commented on NET-405:
-------------------------------------

Is there any plan to upgrade this utility class anytime soon ?

> Support for IPv6 in SubnetUtils
> -------------------------------
>
>                 Key: NET-405
>                 URL: https://issues.apache.org/jira/browse/NET-405
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device only are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NET-405) Support for IPv6 in SubnetUtils

Posted by "Mickaël Tricot (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182611#comment-13182611 ] 

Mickaël Tricot commented on NET-405:
------------------------------------

Some weeks ago, I had to write an IP filter which would work with both IPv4 and IPv6 addresses. I needed to register some IP addresses and IP ranges in CIDR format, then to check if a given IP matches one of those. I would have needed these methods to work with IPv6:

- SubnetUtils(String cidrNotation)
- SubnetUtils.SubnetInfo#isInRange(String address)

Instead, I used the IpAddressMatcher from Spring Security (http://static.springsource.org/spring-security/site/docs/3.1.x/apidocs/org/springframework/security/web/util/IpAddressMatcher.html).
                
> Support for IPv6 in SubnetUtils
> -------------------------------
>
>                 Key: NET-405
>                 URL: https://issues.apache.org/jira/browse/NET-405
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (NET-405) Support for IPv6 in SubnetUtils

Posted by "Sebb (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182906#comment-13182906 ] 

Sebb commented on NET-405:
--------------------------

Thanks, that's very useful to know.

Would you be able to provide some test data/test cases that could be used to test modifications to the class?
                
> Support for IPv6 in SubnetUtils
> -------------------------------
>
>                 Key: NET-405
>                 URL: https://issues.apache.org/jira/browse/NET-405
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (NET-405) Support for IPv6 in SubnetUtils

Posted by "Sebb (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182156#comment-13182156 ] 

Sebb commented on NET-405:
--------------------------

Which of the methods are actually needed for use with IPv6?
                
> Support for IPv6 in SubnetUtils
> -------------------------------
>
>                 Key: NET-405
>                 URL: https://issues.apache.org/jira/browse/NET-405
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (NET-405) Support for IPv6 in SubnetUtils

Posted by "Marc Lefrancois (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Lefrancois updated NET-405:
--------------------------------

    Description: Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion  (was: Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device only are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion)

> Support for IPv6 in SubnetUtils
> -------------------------------
>
>                 Key: NET-405
>                 URL: https://issues.apache.org/jira/browse/NET-405
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NET-405) Support for IPv6 in SubnetUtils

Posted by "Viktor Hedefalk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501914#comment-13501914 ] 

Viktor Hedefalk commented on NET-405:
-------------------------------------

I just struck this problem when on a IPv6 network. My use case is similar ti Mickaël's - I have a config on my webapp declaring an IP-range considered the "home net" from where you are allowed to log in. The way I use it, I got a runtime when client has v6 address:

{code} 
Message: java.lang.IllegalArgumentException: Could not parse [0:0:0:0:0:0:0:1%0]
	org.apache.commons.net.util.SubnetUtils.toInteger(SubnetUtils.java:229)
	org.apache.commons.net.util.SubnetUtils.access$400(SubnetUtils.java:28)
	org.apache.commons.net.util.SubnetUtils$SubnetInfo.isInRange(SubnetUtils.java:116)
{code} 

I will probably just catch this and say "user is NOT in range" since the range is v4 anyways, but it would be nice to allow v6 in the future.
                
> Support for IPv6 in SubnetUtils
> -------------------------------
>
>                 Key: NET-405
>                 URL: https://issues.apache.org/jira/browse/NET-405
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6 addresses. This class will become less and less useful as more internet device are only assigned IPv6 addresses since all available IPv4 address blocks have now been attributed. http://en.wikipedia.org/wiki/IPv4_address_exhaustion

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira