public final class IpV4Packet extends AbstractPacket implements IpPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
IpV4Packet.Builder |
static class |
IpV4Packet.IpV4Header |
static interface |
IpV4Packet.IpV4Option
The interface representing an IPv4 option.
|
static interface |
IpV4Packet.IpV4Tos
The interface representing an IPv4 TOS.
|
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderIpPacket.IpHeaderPacket.Header| Modifier and Type | Method and Description |
|---|---|
IpV4Packet.Builder |
getBuilder()
Returns a new Builder object populated with this object's fields' values.
|
IpV4Packet.IpV4Header |
getHeader()
Returns the Header object representing this packet's header.
|
Packet |
getPayload()
Returns the Packet object representing this packet's payload.
|
static IpV4Packet |
newPacket(byte[] rawData,
int offset,
int length)
A static factory method.
|
buildHexString, buildRawData, buildString, calcHashCode, calcLength, equals, getRawData, hashCode, length, toHexString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, get, getOuterOf, getRawData, iterator, lengthpublic static IpV4Packet newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int),
which may throw exceptions undocumented here.rawData - rawDataoffset - offsetlength - lengthIllegalRawDataException - if parsing the raw data fails.public IpV4Packet.IpV4Header getHeader()
AbstractPacketpublic Packet getPayload()
AbstractPacketgetPayload in interface PacketgetPayload in class AbstractPacketpublic IpV4Packet.Builder getBuilder()
PacketgetBuilder in interface PacketgetBuilder in class AbstractPacketCopyright © 2011 - 2018 Pcap4J.org. All rights reserved.