java.lang.Object
org.pcap4j.packet.AbstractPacket
org.pcap4j.packet.IpV6Packet
- All Implemented Interfaces:
Serializable,Iterable<Packet>,IpPacket,Packet
- Since:
- pcap4j 0.9.10
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic interfaceThe interface representing an IPv6 flow label.static final classstatic interfaceThe interface representing an IPv6 traffic class.Nested classes/interfaces inherited from class org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderNested classes/interfaces inherited from interface org.pcap4j.packet.IpPacket
IpPacket.IpHeaderNested classes/interfaces inherited from interface org.pcap4j.packet.Packet
Packet.Header -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IpV6Packet.IpV6Headerprivate static final org.slf4j.Loggerprivate final Packetprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV6Packet(byte[] rawData, int offset, int length) privateIpV6Packet(IpV6Packet.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionReturns a new Builder object populated with this object's fields' values.Returns the Header object representing this packet's header.Returns the Packet object representing this packet's payload.static IpV6PacketnewPacket(byte[] rawData, int offset, int length) A static factory method.Methods inherited from class org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getOuterOf, getRawData, hashCode, iterator, length, toHexString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.pcap4j.packet.Packet
contains, get, getOuterOf, getRawData, length
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
private static final org.slf4j.Logger logger -
header
-
payload
-
-
Constructor Details
-
IpV6Packet
- Throws:
IllegalRawDataException
-
IpV6Packet
-
-
Method Details
-
newPacket
public static IpV6Packet newPacket(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 IpV6Packet object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getHeader
Description copied from class:AbstractPacketReturns 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. -
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
-
getBuilder
Description copied from interface:PacketReturns a new Builder object populated with this object's fields' values.- Specified by:
getBuilderin interfacePacket- Specified by:
getBuilderin classAbstractPacket- Returns:
- a new Builder object populated with this object's fields values
-