- java.lang.Object
-
- com.sun.jna.Structure
-
- org.pcap4j.core.NativeMappings.pcap_pkthdr
-
- Direct Known Subclasses:
NativeMappings.pcap_pkthdr.ByReference
- Enclosing class:
- NativeMappings
public static class NativeMappings.pcap_pkthdr extends com.sun.jna.Structure
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNativeMappings.pcap_pkthdr.ByReference
-
Field Summary
Fields Modifier and Type Field Description intcaplenstatic intCAPLEN_OFFSETintlenstatic intLEN_OFFSETNativeMappings.timevaltsstatic intTS_OFFSET
-
Constructor Summary
Constructors Constructor Description pcap_pkthdr()pcap_pkthdr(com.sun.jna.Pointer p)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static intgetCaplen(com.sun.jna.Pointer p)protected java.util.List<java.lang.String>getFieldOrder()(package private) static intgetLen(com.sun.jna.Pointer p)(package private) static com.sun.jna.NativeLonggetTvSec(com.sun.jna.Pointer p)(package private) static com.sun.jna.NativeLonggetTvUsec(com.sun.jna.Pointer p)-
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
-
-
-
Field Detail
-
TS_OFFSET
public static final int TS_OFFSET
-
CAPLEN_OFFSET
public static final int CAPLEN_OFFSET
-
LEN_OFFSET
public static final int LEN_OFFSET
-
ts
public NativeMappings.timeval ts
-
caplen
public int caplen
-
len
public int len
-
-
Method Detail
-
getFieldOrder
protected java.util.List<java.lang.String> getFieldOrder()
- Overrides:
getFieldOrderin classcom.sun.jna.Structure
-
getTvSec
static com.sun.jna.NativeLong getTvSec(com.sun.jna.Pointer p)
-
getTvUsec
static com.sun.jna.NativeLong getTvUsec(com.sun.jna.Pointer p)
-
getCaplen
static int getCaplen(com.sun.jna.Pointer p)
-
getLen
static int getLen(com.sun.jna.Pointer p)
-
-