- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket
-
- org.pcap4j.packet.IcmpV4InvokingPacketPacket
-
- Direct Known Subclasses:
IcmpV4DestinationUnreachablePacket,IcmpV4ParameterProblemPacket,IcmpV4RedirectPacket,IcmpV4SourceQuenchPacket,IcmpV4TimeExceededPacket
abstract class IcmpV4InvokingPacketPacket extends AbstractPacket
- Since:
- pcap4j 0.9.15
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classIcmpV4InvokingPacketPacket.Builder-
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
-
-
Field Summary
Fields Modifier and Type Field Description private Packetpayloadprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedIcmpV4InvokingPacketPacket()protectedIcmpV4InvokingPacketPacket(byte[] rawData, int payloadOffset, int payloadLength)protectedIcmpV4InvokingPacketPacket(IcmpV4InvokingPacketPacket.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PacketgetPayload()Returns the Packet object representing this packet's payload.-
Methods inherited from class org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getBuilder, getHeader, getOuterOf, getRawData, hashCode, iterator, length, toHexString, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
payload
private final Packet payload
-
-
Constructor Detail
-
IcmpV4InvokingPacketPacket
protected IcmpV4InvokingPacketPacket()
-
IcmpV4InvokingPacketPacket
protected IcmpV4InvokingPacketPacket(byte[] rawData, int payloadOffset, int payloadLength)- Parameters:
rawData- rawDatapayloadOffset- payloadOffsetpayloadLength- payloadLength
-
IcmpV4InvokingPacketPacket
protected IcmpV4InvokingPacketPacket(IcmpV4InvokingPacketPacket.Builder builder)
- Parameters:
builder- builder
-
-
Method Detail
-
getPayload
public Packet getPayload()
Description copied from class:AbstractPacketReturns 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:
getPayloadin interfacePacket- Overrides:
getPayloadin classAbstractPacket- Returns:
- the Packet object representing this packet's payload. May be null if the payload doesn't exist
-
-