Class NativeMappings.pcap_pkthdr

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
Since:
pcap4j 0.9.1
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class com.sun.jna.Structure

    com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    static final int
     
    int
     
    static final int
     
     
    static final int
     

    Fields inherited from class com.sun.jna.Structure

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    pcap_pkthdr(com.sun.jna.Pointer p)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static int
    getCaplen(com.sun.jna.Pointer p)
     
    protected List<String>
     
    (package private) static int
    getLen(com.sun.jna.Pointer p)
     
    (package private) static com.sun.jna.NativeLong
    getTvSec(com.sun.jna.Pointer p)
     
    (package private) static com.sun.jna.NativeLong
    getTvUsec(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

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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

    • caplen

      public int caplen
    • len

      public int len
  • Constructor Details

    • pcap_pkthdr

      public pcap_pkthdr()
    • pcap_pkthdr

      public pcap_pkthdr(com.sun.jna.Pointer p)
  • Method Details

    • getFieldOrder

      protected List<String> getFieldOrder()
      Overrides:
      getFieldOrder in class com.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)