commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Davis (JIRA)" <>
Subject [jira] Created: (NET-281) Implement a Network Size method
Date Mon, 15 Jun 2009 21:30:07 GMT
Implement a Network Size method

                 Key: NET-281
             Project: Commons Net
          Issue Type: New Feature
         Environment: All
            Reporter: Scott Davis
            Priority: Trivial

Implement a size method in the SubnetUtils.SubnetInfo class.

Something similiar to this:

public int getSize() {
    return (this.broadcast - + 1;

We add one so that we include the network address as being in the network range.  This will
also return the same value as the similiar Net::IP class in perl (I was converting a perl
module to a java class that uses the Net::IP size method).

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

View raw message