public final class IcmpV4RedirectPacket extends AbstractPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
IcmpV4RedirectPacket.Builder |
static class |
IcmpV4RedirectPacket.IcmpV4RedirectHeader |
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderPacket.Header| Modifier and Type | Method and Description |
|---|---|
IcmpV4RedirectPacket.Builder |
getBuilder()
Returns a new Builder object populated with this object's fields' values.
|
IcmpV4RedirectPacket.IcmpV4RedirectHeader |
getHeader()
Returns the Header object representing this packet's header.
|
Packet |
getPayload()
Returns the Packet object representing this packet's payload.
|
static IcmpV4RedirectPacket |
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, toStringpublic static IcmpV4RedirectPacket 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 IcmpV4RedirectPacket.IcmpV4RedirectHeader getHeader()
AbstractPacketgetHeader in interface PacketgetHeader in class AbstractPacketpublic IcmpV4RedirectPacket.Builder getBuilder()
PacketgetBuilder in interface PacketgetBuilder in class AbstractPacketpublic Packet getPayload()
AbstractPacketgetPayload in interface PacketgetPayload in class AbstractPacketCopyright © 2011–2016 Pcap4J.org. All rights reserved.