Class IcmpV4TimestampPacket.IcmpV4TimestampHeader

    • Field Detail

      • ICMP_IDENTIFIABLE_HEADER_SIZE

        protected static final int ICMP_IDENTIFIABLE_HEADER_SIZE
        See Also:
        Constant Field Values
    • Method Detail

      • getOriginateTimestamp

        public int getOriginateTimestamp()
        Returns:
        originateTimestamp
      • getReceiveTimestamp

        public int getReceiveTimestamp()
        Returns:
        receiveTimestamp
      • getTransmitTimestamp

        public int getTransmitTimestamp()
        Returns:
        transmitTimestamp
      • getRawFields

        protected java.util.List<byte[]> getRawFields()
        Description copied from class: AbstractPacket.AbstractHeader
        Returns a list of byte arrays which represents this header's fields. This method is called by calcLength() and buildRawData().
        Returns:
        a list of byte arrays which represents this header's fields
      • length

        public int length()
        Description copied from class: AbstractPacket.AbstractHeader
        Returns the header length in bytes. This method calls 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.
        Specified by:
        length in interface Packet.Header
        Returns:
        the length of the byte stream of the header represented by this object in bytes
      • buildString

        protected java.lang.String buildString()
        Description copied from class: AbstractPacket.AbstractHeader
        This method builds the value toString() will return.
        Returns:
        a string representation of this object
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: AbstractPacket.AbstractHeader
        Indicates whether some other object is "equal to" this one using return values of getRawData(). This method should be overridden so that it does more strict comparisons more efficiently.
      • calcHashCode

        protected int calcHashCode()
        Description copied from class: AbstractPacket.AbstractHeader
        This method builds the value hashCode() will return using the byte array getRawData() returns. This method may be better to be overridden for performance reason.
        Returns:
        a calculated hash code value for the object
      • getHeaderName

        protected java.lang.String getHeaderName()
      • getIdentifier

        public short getIdentifier()
        Returns:
        identifier
      • getIdentifierAsInt

        public int getIdentifierAsInt()
        Returns:
        identifier
      • getSequenceNumber

        public short getSequenceNumber()
        Returns:
        sequenceNumber
      • getSequenceNumberAsInt

        public int getSequenceNumberAsInt()
        Returns:
        sequenceNumber