public static final class IcmpV4TimestampReplyPacket.IcmpV4TimestampReplyHeader extends AbstractPacket.AbstractHeader
Modifier and Type | Field and Description |
---|---|
protected static int |
ICMP_IDENTIFIABLE_HEADER_SIZE |
Modifier and Type | Method and Description |
---|---|
protected String |
buildString()
This method builds the value
toString() will return. |
protected int |
calcHashCode()
This method builds the value
hashCode() will return using
the byte array getRawData() returns. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one using
return values of
getRawData() . |
protected String |
getHeaderName() |
short |
getIdentifier() |
int |
getIdentifierAsInt() |
int |
getOriginateTimestamp() |
protected List<byte[]> |
getRawFields()
Returns a list of byte arrays which represents this header's fields.
|
int |
getReceiveTimestamp() |
short |
getSequenceNumber() |
int |
getSequenceNumberAsInt() |
int |
getTransmitTimestamp() |
int |
length()
Returns the header length in bytes.
|
buildHexString, buildRawData, calcLength, getRawData, hashCode, toHexString, toString
protected static final int ICMP_IDENTIFIABLE_HEADER_SIZE
public int getOriginateTimestamp()
public int getReceiveTimestamp()
public int getTransmitTimestamp()
protected List<byte[]> getRawFields()
AbstractPacket.AbstractHeader
calcLength()
and buildRawData()
.public int length()
AbstractPacket.AbstractHeader
calcLength()
and caches the return value
when it is called for the first time,
and then, this method returns the cached value from the second time.length
in interface Packet.Header
protected String buildString()
AbstractPacket.AbstractHeader
toString()
will return.public boolean equals(Object obj)
AbstractPacket.AbstractHeader
getRawData()
.
This method should be overridden so that it does more strict comparisons
more efficiently.protected int calcHashCode()
AbstractPacket.AbstractHeader
hashCode()
will return using
the byte array getRawData()
returns.
This method may be better to be overridden for performance reason.protected String getHeaderName()
public short getIdentifier()
public int getIdentifierAsInt()
public short getSequenceNumber()
public int getSequenceNumberAsInt()
Copyright © 2011–2016 Pcap4J.org. All rights reserved.