org.apache.commons.net.util
public class SubnetUtils extends Object
Since: 2.0
See Also: http://www.faqs.org/rfcs/rfc1519.html
| Nested Class Summary | |
|---|---|
| class | SubnetUtils.SubnetInfo
Convenience container for subnet summary information.
|
| Constructor Summary | |
|---|---|
| SubnetUtils(String cidrNotation)
Constructor that takes a CIDR-notation string, e.g. | |
| SubnetUtils(String address, String mask)
Constructor that takes two dotted decimal addresses. | |
| Method Summary | |
|---|---|
| SubnetUtils.SubnetInfo | getInfo()
Return a SubnetInfo instance that contains subnet-specific statistics |
Parameters: cidrNotation A CIDR-notation string, e.g. "192.168.0.1/16"
Parameters: address An IP address, e.g. "192.168.0.1" mask A dotted decimal netmask e.g. "255.255.0.0"
Returns: