java.lang.Object
org.pcap4j.packet.IpV6NeighborDiscoveryPrefixInformationOption
- All Implemented Interfaces:
Serializable,IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
public final class IpV6NeighborDiscoveryPrefixInformationOption
extends Object
implements IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
- Since:
- pcap4j 0.9.15
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final intprivate static final intprivate static final intprivate final byteprivate static final intprivate static final intprivate final booleanprivate static final intprivate static final intprivate final intprivate final Inet6Addressprivate static final intprivate static final intprivate static final intprivate static final intprivate final byteprivate final byteprivate final intprivate static final intprivate static final intprivate static final longprivate final IpV6NeighborDiscoveryOptionTypeprivate static final intprivate static final intprivate static final intprivate static final intprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV6NeighborDiscoveryPrefixInformationOption(byte[] rawData, int offset, int length) privateIpV6NeighborDiscoveryPrefixInformationOption(IpV6NeighborDiscoveryPrefixInformationOption.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbyteintbooleanintlongbyteintbyte[]byteintgetType()intlonginthashCode()intlength()newInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TYPE_OFFSET
private static final int TYPE_OFFSET- See Also:
-
TYPE_SIZE
private static final int TYPE_SIZE- See Also:
-
LENGTH_OFFSET
private static final int LENGTH_OFFSET- See Also:
-
LENGTH_SIZE
private static final int LENGTH_SIZE- See Also:
-
PREFIX_LENGTH_OFFSET
private static final int PREFIX_LENGTH_OFFSET- See Also:
-
PREFIX_LENGTH_SIZE
private static final int PREFIX_LENGTH_SIZE- See Also:
-
L_A_RESERVED1_OFFSET
private static final int L_A_RESERVED1_OFFSET- See Also:
-
L_A_RESERVED1_SIZE
private static final int L_A_RESERVED1_SIZE- See Also:
-
VALID_LIFETIME_OFFSET
private static final int VALID_LIFETIME_OFFSET- See Also:
-
VALID_LIFETIME_SIZE
private static final int VALID_LIFETIME_SIZE- See Also:
-
PREFERRED_LIFETIME_OFFSET
private static final int PREFERRED_LIFETIME_OFFSET- See Also:
-
PREFERRED_LIFETIME_SIZE
private static final int PREFERRED_LIFETIME_SIZE- See Also:
-
RESERVED2_OFFSET
private static final int RESERVED2_OFFSET- See Also:
-
RESERVED2_SIZE
private static final int RESERVED2_SIZE- See Also:
-
PREFIX_OFFSET
private static final int PREFIX_OFFSET- See Also:
-
PREFIX_SIZE
private static final int PREFIX_SIZE- See Also:
-
IPV6_NEIGHBOR_DISCOVERY_PREFIX_INFORMATION_OPTION_SIZE
private static final int IPV6_NEIGHBOR_DISCOVERY_PREFIX_INFORMATION_OPTION_SIZE- See Also:
-
type
-
length
private final byte length -
prefixLength
private final byte prefixLength -
onLinkFlag
private final boolean onLinkFlag -
addressConfigurationFlag
private final boolean addressConfigurationFlag -
reserved1
private final byte reserved1 -
validLifetime
private final int validLifetime -
preferredLifetime
private final int preferredLifetime -
reserved2
private final int reserved2 -
prefix
-
-
Constructor Details
-
IpV6NeighborDiscoveryPrefixInformationOption
private IpV6NeighborDiscoveryPrefixInformationOption(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
IpV6NeighborDiscoveryPrefixInformationOption
private IpV6NeighborDiscoveryPrefixInformationOption(IpV6NeighborDiscoveryPrefixInformationOption.Builder builder)
-
-
Method Details
-
newInstance
public static IpV6NeighborDiscoveryPrefixInformationOption newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new IpV6NeighborDiscoveryPrefixInformationOption object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getType
- Specified by:
getTypein interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOption- Returns:
- type
-
getLength
public byte getLength()- Returns:
- length
-
getLengthAsInt
public int getLengthAsInt()- Returns:
- length
-
getPrefixLength
public byte getPrefixLength()- Returns:
- prefixLength
-
getPrefixLengthAsInt
public int getPrefixLengthAsInt()- Returns:
- prefixLength
-
getOnLinkFlag
public boolean getOnLinkFlag()- Returns:
- onLinkFlag
-
getAddressConfigurationFlag
public boolean getAddressConfigurationFlag()- Returns:
- addressConfigurationFlag
-
getReserved1
public byte getReserved1()- Returns:
- reserved1
-
getValidLifetime
public int getValidLifetime()- Returns:
- validLifetime
-
getValidLifetimeAsLong
public long getValidLifetimeAsLong()- Returns:
- validLifetime
-
getPreferredLifetime
public int getPreferredLifetime()- Returns:
- preferredLifetime
-
getPreferredLifetimeAsLong
public long getPreferredLifetimeAsLong()- Returns:
- preferredLifetime
-
getReserved2
public int getReserved2()- Returns:
- reserved2
-
getPrefix
- Returns:
- prefix
-
length
public int length()- Specified by:
lengthin interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOption- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOption- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
public int hashCode()
-