Package org.pcap4j.packet
Class IpV6ExtOptionsPacket
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket
-
- org.pcap4j.packet.IpV6ExtOptionsPacket
-
- Direct Known Subclasses:
IpV6ExtDestinationOptionsPacket
,IpV6ExtHopByHopOptionsPacket
public abstract class IpV6ExtOptionsPacket extends AbstractPacket
- Since:
- pcap4j 0.9.10
- Author:
- Kaito Yamada
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IpV6ExtOptionsPacket.Builder
static class
IpV6ExtOptionsPacket.IpV6ExtOptionsHeader
static interface
IpV6ExtOptionsPacket.IpV6Option
The interface representing an IPv6 option.-
Nested classes/interfaces inherited from class org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
-
Nested classes/interfaces inherited from interface org.pcap4j.packet.Packet
Packet.Header
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IpV6ExtOptionsPacket()
protected
IpV6ExtOptionsPacket(byte[] rawData, int payloadOffset, int payloadLength, IpNumber number)
protected
IpV6ExtOptionsPacket(IpV6ExtOptionsPacket.Builder builder)
-
Method Summary
Modifier and Type Method Description abstract IpV6ExtOptionsPacket.IpV6ExtOptionsHeader
getHeader()
Returns the Header object representing this packet's header.Packet
getPayload()
Returns the Packet object representing this packet's payload.-
Methods inherited from class org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, buildString, calcHashCode, calcLength, equals, getBuilder, getRawData, hashCode, length, toHexString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pcap4j.packet.Packet
contains, get, getOuterOf, iterator
-
-
-
-
Constructor Detail
-
IpV6ExtOptionsPacket
protected IpV6ExtOptionsPacket()
-
IpV6ExtOptionsPacket
protected IpV6ExtOptionsPacket(byte[] rawData, int payloadOffset, int payloadLength, IpNumber number)
- Parameters:
rawData
- rawDatapayloadOffset
- payloadOffsetpayloadLength
- payloadLengthnumber
- number
-
IpV6ExtOptionsPacket
protected IpV6ExtOptionsPacket(IpV6ExtOptionsPacket.Builder builder)
- Parameters:
builder
- builder
-
-
Method Detail
-
getHeader
public abstract IpV6ExtOptionsPacket.IpV6ExtOptionsHeader getHeader()
Description copied from class:AbstractPacket
Returns the Header object representing this packet's header. This subclass have to override this method if the packet represented by the subclass has a header.- Specified by:
getHeader
in interfacePacket
- Overrides:
getHeader
in classAbstractPacket
- Returns:
- the Header object representing this packet's header. May be null if the header doesn't exist
-
getPayload
public Packet getPayload()
Description copied from class:AbstractPacket
Returns the Packet object representing this packet's payload. This subclass have to override this method if the packet represented by the subclass has a payload.- Specified by:
getPayload
in interfacePacket
- Overrides:
getPayload
in classAbstractPacket
- Returns:
- the Packet object representing this packet's payload. May be null if the payload doesn't exist
-
-