commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenny MacLeod (JIRA)" <>
Subject [jira] Updated: (NET-189) Add netmask translation feature
Date Sat, 01 Mar 2008 13:26:51 GMT


Kenny MacLeod updated NET-189:


Funny you should ask that!  See attached code and unit test.

After thinking about this issue a bit more, it was clear that converting a network/netmask
into a set of ip addresses would be potentially very inefficient, and that all we really needed
was a way of finding out if a given IP address was part of a given IP range, using bitwise
mask operations.  The result is very quick indeed.

It doesn't support the specification of the netmask in terms of "" format,
since I find that that's unnecessary flexibility, and that the standard "" format
is sufficient.

> Add netmask translation feature
> -------------------------------
>                 Key: NET-189
>                 URL:
>             Project: Commons Net
>          Issue Type: New Feature
>            Reporter: Kenny MacLeod
>            Priority: Minor
>         Attachments:,
> Java is sorely lacking in a good quality open source APi for translating standard IP
netmasks, e.g.
> 10.1.0.*
> etc etc
> These sorts of masks are commonly used in the likes of Apache web server, and I would
really like to use them in java.  A utlity to translate them into sequences of InetAddress
objects would be perfect.
> Commons-Net would seem like a good project to put them in.
> Thoughts?

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

View raw message