|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.JMemory
org.jnetpcap.nio.JBuffer
org.jnetpcap.packet.JHeader
org.jnetpcap.packet.JHeaderMap<Icmp>
org.jnetpcap.protocol.network.Icmp
@Header public class Icmp
ICMP header definition.
| Nested Class Summary | |
|---|---|
static class |
Icmp.DestinationUnreachable
ICMP Destination Unreachable header definition. |
static class |
Icmp.Echo
ICMP Echo header (ping) baseclass definition. |
static class |
Icmp.EchoReply
ICMP Echo Reply header definition. |
static class |
Icmp.EchoRequest
ICMP Echo Request header definition. |
static class |
Icmp.IcmpCode
A table of Icmp sub-codes per Icmp type. |
static class |
Icmp.IcmpType
A table of IcmpTypes and their names. |
static class |
Icmp.ParamProblem
ICMP Paramater Protoblem header definition. |
static class |
Icmp.Redirect
ICMP Redirect header definition. |
static class |
Icmp.Reserved
Base class for various ICMP Headers that contain a reserved field. |
static class |
Icmp.SourceQuench
ICMP Source Quence header definition. |
| Nested classes/interfaces inherited from class org.jnetpcap.packet.JHeader |
|---|
JHeader.State |
| Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory |
|---|
JMemory.Type |
| Field Summary | |
|---|---|
static int |
ID
The Constant ID. |
| Fields inherited from class org.jnetpcap.packet.JHeaderMap |
|---|
MAX_HEADERS, optionsBitmap, optionsLength, optionsOffsets, X_HEADERS |
| Fields inherited from class org.jnetpcap.packet.JHeader |
|---|
annotatedHeader, BYTE, EMPTY_HEADER_ARRAY, isSubHeader, packet, state |
| Fields inherited from class org.jnetpcap.nio.JMemory |
|---|
JNETPCAP_LIBRARY_NAME, MAX_DIRECT_MEMORY_DEFAULT, POINTER |
| Constructor Summary | |
|---|---|
Icmp()
|
|
| Method Summary | |
|---|---|
int |
calculateChecksum()
Calculates a checksum using protocol specification for a header. |
int |
checksum()
Retrieves the header's checksum. |
java.lang.String |
checksumDescription()
Checksum description. |
int |
code()
Code. |
Icmp.IcmpCode |
codeEnum()
Code enum. |
protected void |
decodeHeader()
Decode header. |
static int |
headerLength(JBuffer buffer,
int offset)
Header length. |
boolean |
isChecksumValid()
Checks if the checksum is valid, for un-fragmented packets. |
int |
type()
Type. |
java.lang.String |
typeDescription()
Type description. |
Icmp.IcmpType |
typeEnum()
Type enum. |
| Methods inherited from class org.jnetpcap.packet.JHeaderMap |
|---|
getSubHeader, getSubHeaders, hasSubHeader, hasSubHeader, hasSubHeaders, setSubHeader, setSubHeaders |
| Methods inherited from class org.jnetpcap.nio.JBuffer |
|---|
findUTF8String, getByte, getByteArray, 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, setShort0, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ID
| Constructor Detail |
|---|
public Icmp()
| Method Detail |
|---|
@HeaderLength
public static int headerLength(JBuffer buffer,
int offset)
buffer - the bufferoffset - the offset
@Dynamic(value=DESCRIPTION) public java.lang.String checksumDescription()
@Field(offset=16,
length=16,
format="%x")
public int checksum()
checksum in interface JHeaderChecksum
@Field(offset=8,
length=8,
format="%x")
public int code()
public Icmp.IcmpCode codeEnum()
protected void decodeHeader()
decodeHeader in class JHeaderJHeader.decodeHeader()
@Field(offset=0,
length=8,
format="%x")
public int type()
@Dynamic(value=DESCRIPTION) public java.lang.String typeDescription()
public Icmp.IcmpType typeEnum()
public int calculateChecksum()
calculateChecksum in interface JHeaderChecksumpublic boolean isChecksumValid()
isChecksumValid in interface JHeaderChecksum
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||