|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.savarese.vserv.tcpip.IPPacket org.savarese.vserv.tcpip.ICMPPacket org.savarese.vserv.tcpip.ICMPEchoPacket
ICMPEchoPacket extends ICMPPacket
to implement ICMP echo request
and reply packets.
Field Summary | |
static int |
OFFSET_IDENTIFIER
Offset into the ICMP packet of the identifier header value. |
static int |
OFFSET_SEQUENCE
Offset into the ICMP packet of the sequence number header value. |
Fields inherited from class org.savarese.vserv.tcpip.ICMPPacket |
OFFSET_CODE, OFFSET_ICMP_CHECKSUM, OFFSET_TYPE, TYPE_ECHO_REPLY, TYPE_ECHO_REQUEST |
Fields inherited from class org.savarese.vserv.tcpip.IPPacket |
_data_, LENGTH_DESTINATION_ADDRESS, LENGTH_SOURCE_ADDRESS, OFFSET_DESTINATION_ADDRESS, OFFSET_FLAGS, OFFSET_IDENTIFICATION, OFFSET_IP_CHECKSUM, OFFSET_PROTOCOL, OFFSET_SOURCE_ADDRESS, OFFSET_TOTAL_LENGTH, OFFSET_TTL, OFFSET_TYPE_OF_SERVICE, PROTOCOL_ICMP, PROTOCOL_IP, PROTOCOL_TCP, PROTOCOL_UDP |
Constructor Summary | |
ICMPEchoPacket(ICMPEchoPacket packet)
Creates a new ICMP echo packet that is a copy of a given packet. |
|
ICMPEchoPacket(int size)
Creates a new ICMP echo packet of a given size. |
Method Summary | |
int |
getICMPHeaderByteLength()
|
int |
getIdentifier()
|
int |
getSequenceNumber()
|
void |
setIdentifier(int id)
Sets the identifier header field. |
void |
setSequenceNumber(int seq)
Sets the sequence number. |
Methods inherited from class org.savarese.vserv.tcpip.ICMPPacket |
computeICMPChecksum, computeICMPChecksum, copyData, getCode, getCombinedHeaderByteLength, getICMPChecksum, getICMPDataByteLength, getICMPPacketByteLength, getType, setCode, setData, setICMPDataByteLength, setIPHeaderLength, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OFFSET_IDENTIFIER
public static final int OFFSET_SEQUENCE
Constructor Detail |
public ICMPEchoPacket(int size)
size
- The number of bytes in the packet.public ICMPEchoPacket(ICMPEchoPacket packet)
packet
- The packet to replicate.Method Detail |
public int getICMPHeaderByteLength()
getICMPHeaderByteLength
in class ICMPPacket
public final void setIdentifier(int id)
id
- The new identifier.public final int getIdentifier()
public final void setSequenceNumber(int seq)
seq
- The new sequence number.public final int getSequenceNumber()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |