public final class IpV6NeighborDiscoveryPrefixInformationOption extends java.lang.Object implements IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
| Modifier and Type | Class and Description |
|---|---|
static class |
IpV6NeighborDiscoveryPrefixInformationOption.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getAddressConfigurationFlag() |
IpV6NeighborDiscoveryPrefixInformationOption.Builder |
getBuilder() |
byte |
getLength() |
int |
getLengthAsInt() |
boolean |
getOnLinkFlag() |
int |
getPreferredLifetime() |
long |
getPreferredLifetimeAsLong() |
java.net.Inet6Address |
getPrefix() |
byte |
getPrefixLength() |
int |
getPrefixLengthAsInt() |
byte[] |
getRawData() |
byte |
getReserved1() |
int |
getReserved2() |
IpV6NeighborDiscoveryOptionType |
getType() |
int |
getValidLifetime() |
long |
getValidLifetimeAsLong() |
int |
hashCode() |
int |
length() |
static IpV6NeighborDiscoveryPrefixInformationOption |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
java.lang.String |
toString() |
public static IpV6NeighborDiscoveryPrefixInformationOption newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int),
which may throw exceptions undocumented here.rawData - rawDataoffset - offsetlength - lengthIllegalRawDataException - if parsing the raw data fails.public IpV6NeighborDiscoveryOptionType getType()
getType in interface IcmpV6CommonPacket.IpV6NeighborDiscoveryOptionpublic byte getLength()
public int getLengthAsInt()
public byte getPrefixLength()
public int getPrefixLengthAsInt()
public boolean getOnLinkFlag()
public boolean getAddressConfigurationFlag()
public byte getReserved1()
public int getValidLifetime()
public long getValidLifetimeAsLong()
public int getPreferredLifetime()
public long getPreferredLifetimeAsLong()
public int getReserved2()
public java.net.Inet6Address getPrefix()
public int length()
length in interface IcmpV6CommonPacket.IpV6NeighborDiscoveryOptionpublic byte[] getRawData()
getRawData in interface IcmpV6CommonPacket.IpV6NeighborDiscoveryOptionpublic IpV6NeighborDiscoveryPrefixInformationOption.Builder getBuilder()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2011 - 2018 Pcap4J.org. All rights reserved.