org.jnetpcap.protocol.network
Class Ip4.Timestamp

java.lang.Object
  extended by org.jnetpcap.nio.JMemory
      extended by org.jnetpcap.nio.JBuffer
          extended by org.jnetpcap.packet.JHeader
              extended by org.jnetpcap.packet.JSubHeader<Ip4>
                  extended by org.jnetpcap.protocol.network.Ip4.IpOption
                      extended by org.jnetpcap.protocol.network.Ip4.Timestamp
All Implemented Interfaces:
JByteBuffer, JPayloadAccessor
Enclosing class:
Ip4

@Header(id=4)
public static class Ip4.Timestamp
extends Ip4.IpOption

Ip4 optional Timestamp header

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class Ip4.Timestamp.Entry
          Ip4 optional Timestamp header - a timestamp entry
static class Ip4.Timestamp.Flag
          A table of Ip4 Timestamp header flags
 
Nested classes/interfaces inherited from class org.jnetpcap.protocol.network.Ip4.IpOption
Ip4.IpOption.OptionCode
 
Nested classes/interfaces inherited from class org.jnetpcap.packet.JHeader
JHeader.State
 
Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory
JMemory.Type
 
Field Summary
static int FLAG_TIMESTAMP_WITH_IP
           
static int FLAG_TIMESTAMPS_PRESPECIFIED
           
static int MASK_FLAGS
           
static int MASK_OVERFLOW
           
 
Fields inherited from class org.jnetpcap.packet.JHeader
annotatedHeader, EMPTY_HEADER_ARRAY, isSubHeader, packet, state
 
Fields inherited from class org.jnetpcap.nio.JMemory
JNETPCAP_LIBRARY_NAME
 
Constructor Summary
Ip4.Timestamp()
           
 
Method Summary
 byte[] address(int index)
           
 Ip4.Timestamp.Entry[] entries()
           
 int entriesLength()
           
 int flags()
           
 void flags(int value)
           
 java.util.Set<Ip4.Timestamp.Flag> flagsEnum()
           
static int headerLength(JBuffer buffer, int offset)
           
 int length()
           
 void length(int value)
           
 int offset()
           
 void offset(int value)
           
 int overflow()
           
 void overflow(int value)
           
 long timestamp(int index)
           
 int timestampsCount()
           
 
Methods inherited from class org.jnetpcap.protocol.network.Ip4.IpOption
code, code, codeEnum, optionCode
 
Methods inherited from class org.jnetpcap.packet.JSubHeader
getLength, getOffset, getParent, setLength, setOffset, setParent
 
Methods inherited from class org.jnetpcap.packet.JHeader
addAnalysis, decode, decodeHeader, getAnalysis, getAnalysisIterable, getAnnotatedHeader, getDescription, getFields, getId, getName, getNicname, getPacket, getPayload, getState, getSubHeaders, getType, hasAnalysis, hasAnalysis, hasAnalysis, hasDescription, hasSubHeaders, peer, peer, peerPayloadTo, setPacket, setSubHeaders, sizeof, toString, transferPayloadTo, transferPayloadTo, transferPayloadTo, validateHeader
 
Methods inherited from class org.jnetpcap.nio.JBuffer
findUTF8String, getByte, getByteArray, getByteArray, getDouble, getFloat, getInt, getLong, getShort, getUByte, getUInt, getUShort, getUTF8Char, getUTF8String, getUTF8String, getUTF8String, getUTF8String, isReadonly, order, order, peer, peer, peer, peer, setByte, setByteArray, setByteBuffer, setDouble, setFloat, setInt, setLong, setShort, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo
 
Methods inherited from class org.jnetpcap.nio.JMemory
check, cleanup, finalize, isInitialized, isJMemoryBasedOwner, isOwner, peer, setSize, size, toDebugString, toHexdump, toHexdump, totalActiveAllocated, totalAllocateCalls, totalAllocated, totalAllocatedSegments0To255Bytes, totalAllocatedSegments256OrAbove, totalDeAllocateCalls, totalDeAllocated, transferFrom, transferFrom, transferFromDirect, transferOwnership, transferTo, transferTo, transferTo, transferTo, transferTo
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jnetpcap.nio.JByteBuffer
size
 

Field Detail

FLAG_TIMESTAMP_WITH_IP

public static final int FLAG_TIMESTAMP_WITH_IP
See Also:
Constant Field Values

FLAG_TIMESTAMPS_PRESPECIFIED

public static final int FLAG_TIMESTAMPS_PRESPECIFIED
See Also:
Constant Field Values

MASK_FLAGS

public static final int MASK_FLAGS
See Also:
Constant Field Values

MASK_OVERFLOW

public static final int MASK_OVERFLOW
See Also:
Constant Field Values
Constructor Detail

Ip4.Timestamp

public Ip4.Timestamp()
Method Detail

headerLength

@HeaderLength
public static int headerLength(JBuffer buffer,
                                            int offset)

address

public byte[] address(int index)

entriesLength

@Dynamic(value=LENGTH)
public int entriesLength()

entries

@Field(offset=32,
       format="%s")
public Ip4.Timestamp.Entry[] entries()

flags

@Field(offset=28,
       length=4)
public int flags()

flags

@FieldSetter
public void flags(int value)

flagsEnum

public java.util.Set<Ip4.Timestamp.Flag> flagsEnum()

length

@Field(offset=8,
       length=8)
public int length()

length

@FieldSetter
public void length(int value)

offset

@Field(offset=16,
       length=16)
public int offset()

offset

@FieldSetter
public void offset(int value)

overflow

@Field(offset=24,
       length=4)
public int overflow()

overflow

@FieldSetter
public void overflow(int value)

timestamp

public long timestamp(int index)

timestampsCount

public int timestampsCount()