|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolMessage
|
+--SSF.OS.ICMPHeader
ICMP packet Header class.
| Field Summary | |
int |
datalen
|
IpHeader |
failedHeader
|
int |
icmpCode
|
int |
icmpType
|
int |
id
|
int |
originTimestamp
These timestamps are in hundredths of seconds. |
int |
receiveTimestamp
These timestamps are in hundredths of seconds. |
int |
seq
|
int |
transmitTimestamp
These timestamps are in hundredths of seconds. |
| Method Summary | |
int |
bytecount()
Returns the total number of bytes in this ICMP packet. |
int |
header_bytecount()
Returns nominal size (in bytes) of the ICMP header only. |
IpHeader |
ipHeader()
|
static ICMPHeader |
makeEchoRequestMessage(int id,
int seq,
int len,
int destAddr)
|
static ICMPHeader |
makeEchoResponseMessage(ICMPHeader request)
|
static ICMPHeader |
makeHostUnreachableMessage(IpHeader problem)
|
static ICMPHeader |
makePortUnreachableMessage(IpHeader problem)
|
static ICMPHeader |
makeProtocolUnreachableMessage(IpHeader problem)
|
static ICMPHeader |
makeTimeExceededMessage(IpHeader problem)
|
static ICMPHeader |
makeTimestampRequestMessage(int id,
int seq,
int destAddr,
long now)
|
static ICMPHeader |
makeTimestampResponseMessage(ICMPHeader request,
long now)
|
java.lang.String |
toString()
|
| Methods inherited from class SSF.OS.ProtocolMessage |
carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, payload, previous, size, tobytes, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public IpHeader failedHeader
public int icmpType
public int icmpCode
public int id
public int seq
public int datalen
public int originTimestamp
public int receiveTimestamp
public int transmitTimestamp
| Method Detail |
public static ICMPHeader makeEchoRequestMessage(int id,
int seq,
int len,
int destAddr)
public static ICMPHeader makeEchoResponseMessage(ICMPHeader request)
public static ICMPHeader makeTimestampRequestMessage(int id,
int seq,
int destAddr,
long now)
public static ICMPHeader makeTimestampResponseMessage(ICMPHeader request,
long now)
public static ICMPHeader makeHostUnreachableMessage(IpHeader problem)
public static ICMPHeader makeProtocolUnreachableMessage(IpHeader problem)
public static ICMPHeader makePortUnreachableMessage(IpHeader problem)
public static ICMPHeader makeTimeExceededMessage(IpHeader problem)
public java.lang.String toString()
toString in class java.lang.Objectpublic IpHeader ipHeader()
public int header_bytecount()
header_bytecount in class ProtocolMessagepublic int bytecount()
bytecount in class ProtocolMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||