public class ICMP extends BasePacket
| Modifier and Type | Field and Description |
|---|---|
protected short |
checksum |
protected byte |
icmpCode |
protected byte |
icmpType |
parent, payload| Constructor and Description |
|---|
ICMP() |
| Modifier and Type | Method and Description |
|---|---|
IPacket |
deserialize(byte[] data,
int offset,
int length)
Deserializes this packet layer and all possible payloads
|
boolean |
equals(java.lang.Object obj) |
short |
getChecksum() |
byte |
getIcmpCode() |
byte |
getIcmpType() |
int |
hashCode() |
byte[] |
serialize()
Serializes the packet.
|
ICMP |
setChecksum(short checksum) |
ICMP |
setIcmpCode(byte icmpCode) |
ICMP |
setIcmpType(byte icmpType) |
clone, getParent, getPayload, resetChecksum, setParent, setPayloadprotected byte icmpType
protected byte icmpCode
protected short checksum
public byte getIcmpType()
public ICMP setIcmpType(byte icmpType)
icmpType - to setpublic byte getIcmpCode()
public ICMP setIcmpCode(byte icmpCode)
icmpCode - code to setpublic short getChecksum()
public ICMP setChecksum(short checksum)
checksum - the checksum to setpublic byte[] serialize()
public int hashCode()
hashCode in class BasePacketpublic boolean equals(java.lang.Object obj)
equals in class BasePacket