Module org.jnetpcap

Class PcapConstants

java.lang.Object
org.jnetpcap.constant.PcapConstants

public final class PcapConstants extends Object
Pcap API constants. These constants are natively defined in C header file 'pcap.h'.
Author:
Sly Technologies, repos@slytechs.com
  • Field Details

    • MAX_SNAPLEN

      public static final int MAX_SNAPLEN
      Maximum snaplen size of 64K.
      See Also:
    • PCAP_NETMASK_UNKNOWN

      public static final int PCAP_NETMASK_UNKNOWN
      Value to pass to pcap_compile() as the netmask if you don't know what the netmask is.
      See Also:
    • PCAP_CHAR_ENC_LOCAL

      public static final int PCAP_CHAR_ENC_LOCAL
      Treat all strings supplied as arguments, and return all strings to the caller, as being in the local character encoding.
      See Also:
    • PCAP_CHAR_ENC_UTF_8

      public static final int PCAP_CHAR_ENC_UTF_8
      Treat all strings supplied as arguments, and return all strings to the caller, as being in UTF-8.
      See Also:
    • PCAP_TSTAMP_PRECISION_MICRO

      public static final int PCAP_TSTAMP_PRECISION_MICRO
      use timestamps with microsecond precision, default.
      See Also:
    • PCAP_TSTAMP_PRECISION_NANO

      public static final int PCAP_TSTAMP_PRECISION_NANO
      use timestamps with nanosecond precision.
      See Also:
    • PCAP_ERROR_BREAK

      public static final int PCAP_ERROR_BREAK
      loop terminated by pcap_breakloop.
      See Also:
    • PCAP_WARNING

      public static final int PCAP_WARNING
      generic warning full.
      See Also:
    • PCAP_WARNING_PROMISC_NOTSUP

      public static final int PCAP_WARNING_PROMISC_NOTSUP
      this device doesn't support promiscuous mode.
      See Also:
    • PCAP_WARNING_TSTAMP_TYPE_NOTSUP

      public static final int PCAP_WARNING_TSTAMP_TYPE_NOTSUP
      the requested time stamp type is not supported.
      See Also:
    • PCAP_IF_LOOPBACK

      public static final int PCAP_IF_LOOPBACK
      interface is loopback.
      See Also:
    • PCAP_IF_UP

      public static final int PCAP_IF_UP
      interface is up.
      See Also:
    • PCAP_IF_RUNNING

      public static final int PCAP_IF_RUNNING
      interface is running.
      See Also:
    • PCAP_IF_WIRELESS

      public static final int PCAP_IF_WIRELESS
      interface is wireless (*NOT* necessarily Wi-Fi!).
      See Also:
    • PCAP_IF_CONNECTION_STATUS

      public static final int PCAP_IF_CONNECTION_STATUS
      connection status:.
      See Also:
    • PCAP_IF_CONNECTION_STATUS_UNKNOWN

      public static final int PCAP_IF_CONNECTION_STATUS_UNKNOWN
      unknown.
      See Also:
    • PCAP_IF_CONNECTION_STATUS_CONNECTED

      public static final int PCAP_IF_CONNECTION_STATUS_CONNECTED
      connected.
      See Also:
    • PCAP_IF_CONNECTION_STATUS_DISCONNECTED

      public static final int PCAP_IF_CONNECTION_STATUS_DISCONNECTED
      disconnected.
      See Also:
    • PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE

      public static final int PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE
      not applicable.
      See Also:
    • PCAP_ERRBUF_SIZE

      public static final int PCAP_ERRBUF_SIZE
      The Constant PCAP_ERRBUF_SIZE.
      See Also:
    • PCAP_BUF_SIZE

      public static final int PCAP_BUF_SIZE
      The Constant PCAP_BUF_SIZE.
      See Also:
    • PCAP_STAT_SIZE

      public static final int PCAP_STAT_SIZE
      The Constant PCAP_STAT_SIZE.
      See Also:
    • PCAP_NEXT_EX_OK

      public static final int PCAP_NEXT_EX_OK
      pcap_next_ex() returns 1 if the packet was read without problems.
      See Also:
    • PCAP_NEXT_EX_TIMEOUT

      public static final int PCAP_NEXT_EX_TIMEOUT
      0 if packets are being read from a live capture and the packet buffer timeout expired.
      See Also: