Implement a Network Size method
-------------------------------
Key: NET-281
URL: https://issues.apache.org/jira/browse/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 - this.network) + 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.