public final class IpV4Packet extends AbstractPacket
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.AbstractHeader
Packet.Header
Modifier and Type | Method and Description |
---|---|
IpV4Packet.Builder |
getBuilder() |
IpV4Packet.IpV4Header |
getHeader() |
Packet |
getPayload() |
static IpV4Packet |
newPacket(byte[] rawData,
int offset,
int length)
A static factory method.
|
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getOuterOf, getRawData, hashCode, iterator, length, toHexString, toString
public static IpV4Packet newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- offset
- length
- IllegalRawDataException
public IpV4Packet.IpV4Header getHeader()
getHeader
in interface Packet
getHeader
in class AbstractPacket
public Packet getPayload()
getPayload
in interface Packet
getPayload
in class AbstractPacket
public IpV4Packet.Builder getBuilder()
getBuilder
in interface Packet
getBuilder
in class AbstractPacket
Copyright © 2014. All Rights Reserved.