Class IpV6NeighborDiscoveryRedirectedHeaderOption
java.lang.Object
org.pcap4j.packet.IpV6NeighborDiscoveryRedirectedHeaderOption
- All Implemented Interfaces:
Serializable, IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
public final class IpV6NeighborDiscoveryRedirectedHeaderOption
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 static final intprivate final Packetprivate final byteprivate static final intprivate static final intprivate final byte[]private static final intprivate static final intprivate static final longprivate final IpV6NeighborDiscoveryOptionTypeprivate static final intprivate static final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV6NeighborDiscoveryRedirectedHeaderOption(byte[] rawData, int offset, int length) privateIpV6NeighborDiscoveryRedirectedHeaderOption(IpV6NeighborDiscoveryRedirectedHeaderOption.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyteintbyte[]byte[]getType()inthashCode()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:
-
RESERVED_OFFSET
private static final int RESERVED_OFFSET- See Also:
-
RESERVED_SIZE
private static final int RESERVED_SIZE- See Also:
-
IP_HEADER_OFFSET
private static final int IP_HEADER_OFFSET- See Also:
-
type
-
length
private final byte length -
reserved
private final byte[] reserved -
ipPacket
-
-
Constructor Details
-
IpV6NeighborDiscoveryRedirectedHeaderOption
private IpV6NeighborDiscoveryRedirectedHeaderOption(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
IpV6NeighborDiscoveryRedirectedHeaderOption
private IpV6NeighborDiscoveryRedirectedHeaderOption(IpV6NeighborDiscoveryRedirectedHeaderOption.Builder builder)
-
-
Method Details
-
newInstance
public static IpV6NeighborDiscoveryRedirectedHeaderOption 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 IpV6NeighborDiscoveryRedirectedHeaderOption 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
-
getReserved
public byte[] getReserved()- Returns:
- reserved
-
getIpPacket
- Returns:
- ipPacket
-
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
-