org.jnetpcap.protocol.network
Class Icmp
java.lang.Object
org.jnetpcap.nio.JMemory
org.jnetpcap.nio.JBuffer
org.jnetpcap.packet.JHeader
org.jnetpcap.packet.JHeaderMap<Icmp>
org.jnetpcap.protocol.network.Icmp
- All Implemented Interfaces:
- JByteBuffer, JCompoundHeader<Icmp>
@Header
public class Icmp
- extends JHeaderMap<Icmp>
ICMP header definition
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
|
Field Summary |
static int |
ID
|
|
Constructor Summary |
Icmp()
|
| Methods inherited from class org.jnetpcap.packet.JHeader |
addAnalysis, decode, getAnalysis, getAnalysisIterable, getAnnotatedHeader, getDescription, getFields, getId, getLength, getName, getNicname, getOffset, getPacket, getParent, getState, getType, hasAnalysis, hasAnalysis, hasAnalysis, hasDescription, peer, peer, setPacket, sizeof, toString, validateHeader |
| Methods inherited from class org.jnetpcap.nio.JBuffer |
findUTF8String, getByte, getByteArray, getByteArray, getDouble, getFloat, getInt, getLong, getShort, getUByte, getUInt, getUShort, getUTF8Char, getUTF8String, getUTF8String, getUTF8String, getUTF8String, isReadonly, order, order, peer, peer, peer, peer, setByte, setByteArray, setByteBuffer, setDouble, setFloat, setInt, setLong, setShort, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo |
| Methods inherited from class org.jnetpcap.nio.JMemory |
check, cleanup, finalize, isInitialized, isJMemoryBasedOwner, isOwner, peer, setSize, size, toDebugString, toHexdump, toHexdump, totalActiveAllocated, totalAllocateCalls, totalAllocated, totalAllocatedSegments0To255Bytes, totalAllocatedSegments256OrAbove, totalDeAllocateCalls, totalDeAllocated, transferFrom, transferFrom, transferFromDirect, transferOwnership, transferTo, transferTo, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ID
public static final int ID
- See Also:
- Constant Field Values
Icmp
public Icmp()
headerLength
@HeaderLength
public static int headerLength(JBuffer buffer,
int offset)
checksum
@Field(offset=16,
length=16,
format="%x")
public int checksum()
code
@Field(offset=8,
length=8,
format="%x")
public int code()
codeEnum
public Icmp.IcmpCode codeEnum()
decodeHeader
protected void decodeHeader()
- Description copied from class:
JHeader
- Allows a header to decode its complex fields
- Overrides:
decodeHeader in class JHeader
type
@Field(offset=0,
length=8,
format="%x")
public int type()
typeDescription
@Dynamic(value=DESCRIPTION)
public java.lang.String typeDescription()
typeEnum
public Icmp.IcmpType typeEnum()