Package org.pcap4j.packet
Class IpV6NeighborDiscoveryRedirectedHeaderOption
- java.lang.Object
-
- org.pcap4j.packet.IpV6NeighborDiscoveryRedirectedHeaderOption
-
- All Implemented Interfaces:
java.io.Serializable
,IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
public final class IpV6NeighborDiscoveryRedirectedHeaderOption extends java.lang.Object implements IcmpV6CommonPacket.IpV6NeighborDiscoveryOption
- Since:
- pcap4j 0.9.15
- Author:
- Kaito Yamada
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IpV6NeighborDiscoveryRedirectedHeaderOption.Builder
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
IpV6NeighborDiscoveryRedirectedHeaderOption.Builder
getBuilder()
Packet
getIpPacket()
byte
getLength()
int
getLengthAsInt()
byte[]
getRawData()
byte[]
getReserved()
IpV6NeighborDiscoveryOptionType
getType()
int
hashCode()
int
length()
static IpV6NeighborDiscoveryRedirectedHeaderOption
newInstance(byte[] rawData, int offset, int length)
A static factory method.java.lang.String
toString()
-
-
-
Method Detail
-
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
public IpV6NeighborDiscoveryOptionType getType()
- Specified by:
getType
in interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOption
- Returns:
- type
-
getLength
public byte getLength()
- Returns:
- length
-
getLengthAsInt
public int getLengthAsInt()
- Returns:
- length
-
getReserved
public byte[] getReserved()
- Returns:
- reserved
-
getIpPacket
public Packet getIpPacket()
- Returns:
- ipPacket
-
length
public int length()
- Specified by:
length
in interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOption
- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawData
in interfaceIcmpV6CommonPacket.IpV6NeighborDiscoveryOption
- Returns:
- raw data
-
getBuilder
public IpV6NeighborDiscoveryRedirectedHeaderOption.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-