org.jnetpcap.packet
Class JHeader.State
java.lang.Object
org.jnetpcap.nio.JMemory
org.jnetpcap.nio.JStruct
org.jnetpcap.packet.JHeader.State
- Enclosing class:
- JHeader
public static class JHeader.State
- extends JStruct
This class is peered state of a header a native state structure
typedef struct header_t {
int32_t hdr_id; // header ID
uint32_t hdr_offset; // offset into the packet_t->data buffer
int32_t hdr_length; // length of the header in packet_t->data buffer
} header_t;
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
| Methods inherited from class org.jnetpcap.nio.JMemory |
check, cleanup, finalize, isInitialized, isJMemoryBasedOwner, isOwner, peer, peer, peer, setSize, size, toDebugString, toHexdump, toHexdump, totalActiveAllocated, totalAllocateCalls, totalAllocated, totalAllocatedSegments0To255Bytes, totalAllocatedSegments256OrAbove, totalDeAllocateCalls, totalDeAllocated, transferFrom, transferFrom, transferFrom, transferFrom, transferFromDirect, transferOwnership, transferTo, transferTo, transferTo, transferTo, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STRUCT_NAME
public static final java.lang.String STRUCT_NAME
- See Also:
- Constant Field Values
JHeader.State
public JHeader.State(JMemory.Type type)
- Create an uninitialized type
- Parameters:
type - type of memory
getAnalysis
public JAnalysis getAnalysis()
- Retrieves the analysis object that is attached to this header.
- Returns:
- an attached analysis based object or null if not set
getId
public int getId()
getLength
public int getLength()
getOffset
public int getOffset()
isDirect
public boolean isDirect()
peer
public int peer(JHeader.State peer)
setAnalysis
public void setAnalysis(JPacket.State state,
JAnalysis analysis)
- Sets the analysis object for this header.
- Parameters:
state - packet's state objectanalysis - analysis object to set
toString
public java.lang.String toString()
- Overrides:
toString in class JStruct