public class LocalIpPrefixEntry extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalIpPrefixEntry.IpPrefixType
Specifies the type of local IP prefix.
|
| Constructor and Description |
|---|
LocalIpPrefixEntry(org.onlab.packet.IpPrefix ipPrefix,
LocalIpPrefixEntry.IpPrefixType type,
org.onlab.packet.IpAddress gatewayIpAddress)
Creates a new IP prefix entry.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.onlab.packet.IpAddress |
getGatewayIpAddress()
Gets the gateway IP address of the IP prefix entry.
|
int |
hashCode() |
org.onlab.packet.IpPrefix |
ipPrefix()
Gets the IP prefix of the IP prefix entry.
|
LocalIpPrefixEntry.IpPrefixType |
ipPrefixType()
Gets the IP prefix type of the IP prefix entry.
|
boolean |
isIp4()
Tests whether the IP version of this entry is IPv4.
|
boolean |
isIp6()
Tests whether the IP version of this entry is IPv6.
|
String |
toString() |
public LocalIpPrefixEntry(org.onlab.packet.IpPrefix ipPrefix,
LocalIpPrefixEntry.IpPrefixType type,
org.onlab.packet.IpAddress gatewayIpAddress)
ipPrefix - an IP prefixtype - an IP prefix type as an IpPrefixTypegatewayIpAddress - IP of the gatewaypublic org.onlab.packet.IpPrefix ipPrefix()
public LocalIpPrefixEntry.IpPrefixType ipPrefixType()
public org.onlab.packet.IpAddress getGatewayIpAddress()
public boolean isIp4()
public boolean isIp6()