java.lang.Object
org.jnetpcap.constant.PcapConstants
Pcap API constants. These constants are natively defined in C header file
'pcap.h'.
- Author:
- Sly Technologies, repos@slytechs.com
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Maximum snaplen size of 64K.static final int
The Constant PCAP_BUF_SIZE.static final int
Treat all strings supplied as arguments, and return all strings to the caller, as being in the local character encoding.static final int
Treat all strings supplied as arguments, and return all strings to the caller, as being in UTF-8.static final int
The Constant PCAP_ERRBUF_SIZE.static final int
loop terminated by pcap_breakloop.static final int
connection status:.static final int
connected.static final int
disconnected.static final int
not applicable.static final int
unknown.static final int
interface is loopback.static final int
interface is running.static final int
interface is up.static final int
interface is wireless (*NOT* necessarily Wi-Fi!).static final int
Value to pass to pcap_compile() as the netmask if you don't know what the netmask is.static final int
pcap_next_ex() returns 1 if the packet was read without problems.static final int
0 if packets are being read from a live capture and the packet buffer timeout expired.static final int
The Constant PCAP_STAT_SIZE.static final int
use timestamps with microsecond precision, default.static final int
use timestamps with nanosecond precision.static final int
generic warning full.static final int
this device doesn't support promiscuous mode.static final int
the requested time stamp type is not supported. -
Method Summary
-
Field Details
-
MAX_SNAPLEN
public static final int MAX_SNAPLENMaximum snaplen size of 64K.- See Also:
-
PCAP_NETMASK_UNKNOWN
public static final int PCAP_NETMASK_UNKNOWNValue 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_LOCALTreat 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_8Treat 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_MICROuse timestamps with microsecond precision, default.- See Also:
-
PCAP_TSTAMP_PRECISION_NANO
public static final int PCAP_TSTAMP_PRECISION_NANOuse timestamps with nanosecond precision.- See Also:
-
PCAP_ERROR_BREAK
public static final int PCAP_ERROR_BREAKloop terminated by pcap_breakloop.- See Also:
-
PCAP_WARNING
public static final int PCAP_WARNINGgeneric warning full.- See Also:
-
PCAP_WARNING_PROMISC_NOTSUP
public static final int PCAP_WARNING_PROMISC_NOTSUPthis device doesn't support promiscuous mode.- See Also:
-
PCAP_WARNING_TSTAMP_TYPE_NOTSUP
public static final int PCAP_WARNING_TSTAMP_TYPE_NOTSUPthe requested time stamp type is not supported.- See Also:
-
PCAP_IF_LOOPBACK
public static final int PCAP_IF_LOOPBACKinterface is loopback.- See Also:
-
PCAP_IF_UP
public static final int PCAP_IF_UPinterface is up.- See Also:
-
PCAP_IF_RUNNING
public static final int PCAP_IF_RUNNINGinterface is running.- See Also:
-
PCAP_IF_WIRELESS
public static final int PCAP_IF_WIRELESSinterface is wireless (*NOT* necessarily Wi-Fi!).- See Also:
-
PCAP_IF_CONNECTION_STATUS
public static final int PCAP_IF_CONNECTION_STATUSconnection status:.- See Also:
-
PCAP_IF_CONNECTION_STATUS_UNKNOWN
public static final int PCAP_IF_CONNECTION_STATUS_UNKNOWNunknown.- See Also:
-
PCAP_IF_CONNECTION_STATUS_CONNECTED
public static final int PCAP_IF_CONNECTION_STATUS_CONNECTEDconnected.- See Also:
-
PCAP_IF_CONNECTION_STATUS_DISCONNECTED
public static final int PCAP_IF_CONNECTION_STATUS_DISCONNECTEDdisconnected.- See Also:
-
PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE
public static final int PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLEnot applicable.- See Also:
-
PCAP_ERRBUF_SIZE
public static final int PCAP_ERRBUF_SIZEThe Constant PCAP_ERRBUF_SIZE.- See Also:
-
PCAP_BUF_SIZE
public static final int PCAP_BUF_SIZEThe Constant PCAP_BUF_SIZE.- See Also:
-
PCAP_STAT_SIZE
public static final int PCAP_STAT_SIZEThe Constant PCAP_STAT_SIZE.- See Also:
-
PCAP_NEXT_EX_OK
public static final int PCAP_NEXT_EX_OKpcap_next_ex() returns 1 if the packet was read without problems.- See Also:
-
PCAP_NEXT_EX_TIMEOUT
public static final int PCAP_NEXT_EX_TIMEOUT0 if packets are being read from a live capture and the packet buffer timeout expired.- See Also:
-