java.lang.Object
org.pcap4j.packet.UnknownIpV6NeighborDiscoveryOption
- All Implemented Interfaces:
Serializable,IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
public final class UnknownIpV6NeighborDiscoveryOption
extends Object
implements IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
- Since:
- pcap4j 0.9.15
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private final byteprivate static final longprivate final IpV6NeighborDiscoveryOptionType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUnknownIpV6NeighborDiscoveryOption(byte[] rawData, int offset, int length) private -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
type
-
length
private final byte length -
data
private final byte[] data
-
-
Constructor Details
-
UnknownIpV6NeighborDiscoveryOption
private UnknownIpV6NeighborDiscoveryOption(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
UnknownIpV6NeighborDiscoveryOption
-
-
Method Details
-
newInstance
public static UnknownIpV6NeighborDiscoveryOption 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 UnknownIpV6NeighborDiscoveryOption 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
-
getData
public byte[] getData()- Returns:
- data
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOption- Returns:
- raw data
-
length
public int length()- Specified by:
lengthin interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOption- Returns:
- length
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
public int hashCode()
-