[ https://issues.apache.org/jira/browse/NET-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rory Winston resolved NET-281. ------------------------------ Resolution: Fixed Fix Version/s: 3.0 Thanks Scott. Committing a getSize() method to svn now. > 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 > Fix For: 3.0 > > > Implement a size method in the SubnetUtils.SubnetInfo class. > Something similiar to this: > {code} > public int getSize() { > return (this.broadcast - this.network) + 1; > } > {code} > 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 and was very supripsed this library didn't have one). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.