A B C D E F G I J L M N O P Q R S T V W

A

AF_INET - Static variable in class org.jnetpcap.PcapSockAddr
Socket family internet version 4
AF_INET6 - Static variable in class org.jnetpcap.PcapSockAddr
Socket family internet version 6

B

breakloop() - Method in class org.jnetpcap.Pcap
set a flag that will force pcap_dispatch() or pcap_loop() to return rather than looping.

C

capt - Variable in class org.jnetpcap.PcapStat
number of packets that are received by the application
checkIsActive() - Method in class org.jnetpcap.Pcap
Checks if the current Pcap structure is active and open.
close() - Method in class org.jnetpcap.Pcap
pcap_close() closes the files associated with p and deallocates resources.
close() - Method in class org.jnetpcap.PcapDumper
Closes a savefile.
compile(PcapBpfProgram, String, int, int) - Method in class org.jnetpcap.Pcap
Compile a packet filter, converting a high level filtering expression in to a progra that can be interpreted by the kernel-level filtering engine.
compileNoPcap(int, int, PcapBpfProgram, String, int, int) - Static method in class org.jnetpcap.Pcap
Compile a packet filter without the need of opening an adapter.
CONST_AIRONET_HEADER - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_APPLE_IP_OVER_IEEE1394 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_ARCNET - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_ARCNET_LINUX - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_ATM_CLIP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_ATM_RFC1483 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_AURORA - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_AX25 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_BACNET_MS_TP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_C_HDLC - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_CHAOS - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_CISCO_IOS - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_DOCSIS - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_ECONET - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_EN10MB - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_EN3MB - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_ENC - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_ERF_ETH - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_ERF_POS - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_FDDI - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_FRELAY - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_GCOM_SERIAL - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_GCOM_T1E1 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_GPF_F - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_GPF_T - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_GPRS_LLC - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_IBM_SN - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_IBM_SP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_IEEE802 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_IEEE802_11 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_IEEE802_11_RADIO - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_IEEE802_11_RADIO_AVS - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_IP_OVER_FC - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_IPFILTER - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_ATM1 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_ATM2 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_ES - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_GGSN - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_MFR - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_MLFR - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_MLPPP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_MONITOR - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_PIC_PEER - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_PPPOE - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_PPPOE_ATM - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_JUNIPER_SERVICES - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_LINUX_IRDA - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_LINUX_LAPD - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_LINUX_SLL - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_LOOP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_LTALK - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_MTP2 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_MTP2_WITH_PHDR - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_MTP3 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_NULL - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PCI_EXP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PFLOG - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PFSYNC - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PPP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PPP_BSDOS - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PPP_ETHER - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PPP_PPPD - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PPP_SERIAL - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PRISM_HEADER - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_PRONET - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_RAW - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_RIO - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_SCCP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_SLIP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_SLIP_BSDOS - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_SUNATM - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_SYMANTEC_FIREWALL - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_TZSP - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER0 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER1 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER10 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER11 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER12 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER13 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER14 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER15 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER2 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER3 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER4 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER5 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER6 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER7 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER8 - Static variable in enum org.jnetpcap.PcapDLT
 
CONST_USER9 - Static variable in enum org.jnetpcap.PcapDLT
 
createSrcStr(StringBuilder, int, String, String, String, StringBuilder) - Static method in class org.jnetpcap.winpcap.WinPcap
Accept a set of strings (host name, port, ...), and it returns the complete source string according to the new format (e.g.

D

datalink() - Method in class org.jnetpcap.Pcap
Returns the link layer of an adapter.
datalinkNameToVal(String) - Static method in class org.jnetpcap.Pcap
Translates a data link type name, which is a DLT_ name with the DLT_ removed, to the corresponding data link type value.
datalinkValToDescription(int) - Static method in class org.jnetpcap.Pcap
Translates a data link type value to a short description of that data link type.
datalinkValToName(int) - Static method in class org.jnetpcap.Pcap
Translates a data link type value to the corresponding data link type name.
DEFAULT_QUEUE_SIZE - Static variable in class org.jnetpcap.winpcap.WinPcapSendQueue
Constant used to determine the default queue size which is 64Kb (1024 * 64).
description - Variable in enum org.jnetpcap.PcapDLT
Description of the dlt retrieved by quering the native pcap library.
dispatch(int, PcapHandler<T>, T) - Method in class org.jnetpcap.Pcap
Collect a group of packets.
DISPATCH_BUFFER_FULL - Static variable in class org.jnetpcap.Pcap
Value of packet count argument for dispatch method call which indicates that only as many packets should be returned as will fit in a single buffer , unless an error occured or breakloop call was used to interrupt the dispatcher.
dump(PcapPktHdr, ByteBuffer) - Method in class org.jnetpcap.PcapDumper
Outputs a packet to the "savefile" opened with dumpOpen.
dump(long, int, int, int, ByteBuffer) - Method in class org.jnetpcap.PcapDumper
Outputs a packet to the "savefile" opened with dumpOpen.
dumpOpen(String) - Method in class org.jnetpcap.Pcap
Open a file to write packets.

E

equals(int) - Method in enum org.jnetpcap.PcapDLT
Compares the supplied value with the constant's assigned DLT value.

F

finalize() - Method in class org.jnetpcap.Pcap
Cleanup before we're GCed.
finalize() - Method in class org.jnetpcap.PcapBpfProgram
Cleans up JNI resources and releases any unreleased BPF programs in native land.
findAllDevs(List<PcapIf>, StringBuilder) - Static method in class org.jnetpcap.Pcap
pcap_findalldevs() constructs a list of network devices that can be opened with pcap_open_live().
findAllDevsEx(String, WinPcapRmtAuth, List<PcapIf>, StringBuilder) - Static method in class org.jnetpcap.winpcap.WinPcap
Create a list of network devices that can be opened with pcap_open().
FIRST_AFTER_N_MS - Static variable in class org.jnetpcap.winpcap.WinPcapSamp
It defines that we have to return 1 packet every N milliseconds.
flush() - Method in class org.jnetpcap.PcapDumper
Flushes the output buffer to the "savefile", so that any packets written with Pcap.dump but not yet written to the "savefile" will be written.
freeAllDevs(List<PcapIf>, byte[]) - Static method in class org.jnetpcap.Pcap
This method does nothing.
freecode(PcapBpfProgram) - Static method in class org.jnetpcap.Pcap
This frees up the code structures, but does not released the peered base bpf_program peer structure.
ftell() - Method in class org.jnetpcap.PcapDumper
Returns the current file position for the "savefile", representing the number of bytes written by Pcap.dumpOpen and Pcap.dump.

G

getAddr() - Method in class org.jnetpcap.PcapAddr
pcap_addr.addr field.
getAddresses() - Method in class org.jnetpcap.PcapIf
A list of addresses for this field.
getBroadaddr() - Method in class org.jnetpcap.PcapAddr
pcap_addr.broadaddr field.
getBuffer() - Method in class org.jnetpcap.PcapPktBuffer
 
getBuffer() - Method in class org.jnetpcap.winpcap.WinPcapSendQueue
Gets the buffer containing the packets to be sent.
getCaplen() - Method in class org.jnetpcap.PcapPktHdr
Number of bytes actually captured.
getCapt() - Method in class org.jnetpcap.winpcap.WinPcapStat
number of packets that are received by the application
getData() - Method in class org.jnetpcap.PcapSockAddr
Gets protocol family specifiy array of bytes which contain the protocol's address.
getDescription() - Method in class org.jnetpcap.PcapIf
pcap_if.description field.
getDrop() - Method in class org.jnetpcap.PcapStat
number of packets dropped by the driver
getDstaddr() - Method in class org.jnetpcap.PcapAddr
pcap_addr.dstaddr field.
getErr() - Method in class org.jnetpcap.Pcap
return the error text pertaining to the last pcap library error.
getFamily() - Method in class org.jnetpcap.PcapSockAddr
Gets the socket's protocol family identifier.
getFlags() - Method in class org.jnetpcap.PcapIf
pcap_if.flags field.
getIfDrop() - Method in class org.jnetpcap.PcapStat
drops by interface.
getInstruction(int) - Method in class org.jnetpcap.PcapBpfProgram
Retrieves a single BPF instruction which is 8 bytes long and is encoded into the long interger returned.
getInstructionCount() - Method in class org.jnetpcap.PcapBpfProgram
Gets the exact number of BPF instructions within this program.
getLen() - Method in class org.jnetpcap.PcapPktHdr
Number of original bytes in the packet.
getLen() - Method in class org.jnetpcap.winpcap.WinPcapSendQueue
Gets the current size of the queue, in bytes.
getMaxLen() - Method in class org.jnetpcap.winpcap.WinPcapSendQueue
Gets the maximum size of the the queue, in bytes.
getMethod() - Method in class org.jnetpcap.winpcap.WinPcapSamp
Gets the current method type for capture sampling.
getName() - Method in class org.jnetpcap.PcapIf
pcap_if.name field.
getNetdrop() - Method in class org.jnetpcap.winpcap.WinPcapStat
number of packets lost on the network
getNetmask() - Method in class org.jnetpcap.PcapAddr
pcap_addr.netmask field.
getNonBlock(StringBuilder) - Method in class org.jnetpcap.Pcap
pcap_getnonblock() returns the current ``non-blocking'' state of the capture descriptor; it always returns 0 on ``savefiles''.
getPassword() - Method in class org.jnetpcap.winpcap.WinPcapRmtAuth
Gets the string containing the password that has to be used on the remote machine for authentication.
getRecv() - Method in class org.jnetpcap.PcapStat
Number of packets transmitted on the network
getSeconds() - Method in class org.jnetpcap.PcapPktHdr
Capture timestamp in seconds.
getSent() - Method in class org.jnetpcap.winpcap.WinPcapStat
number of packets sent by the server on the network
getType() - Method in class org.jnetpcap.winpcap.WinPcapRmtAuth
Gets the type of the authentication required.
getUseconds() - Method in class org.jnetpcap.PcapPktHdr
Capture timestamp in microseconds fraction.
getUsername() - Method in class org.jnetpcap.winpcap.WinPcapRmtAuth
String containing the username that has to be used on the remote machine for authentication.
getValue() - Method in class org.jnetpcap.PcapInteger
Gets the current value
getValue() - Method in class org.jnetpcap.winpcap.WinPcapSamp
This value depends on the sampling method defined.

I

inject(byte[]) - Method in class org.jnetpcap.Pcap
This method allows to send a raw packet to the network.
inject(byte[], int, int) - Method in class org.jnetpcap.Pcap
This method allows to send a raw packet to the network.
inject(ByteBuffer) - Method in class org.jnetpcap.Pcap
This method allows to send a raw packet to the network.
isInjectSupported() - Static method in class org.jnetpcap.Pcap
Checks if the current platform has support for pcap_inject call.
isSendPacketSupported() - Static method in class org.jnetpcap.Pcap
Checks if the current platform has support for pcap_sendpacket call.
isSupported() - Static method in class org.jnetpcap.winpcap.WinPcap
Checks if WinPcap extensions are available on this platform.
isSwapped() - Method in class org.jnetpcap.Pcap
returns true if the current savefile uses a different byte order than the current system

J

JNETPCAP_LIBRARY_NAME - Static variable in class org.jnetpcap.Pcap
Name of the native library that wraps around libpcap and extensions

L

libVersion() - Static method in class org.jnetpcap.Pcap
Returns a pointer to a string giving information about the version of the libpcap library being used; note that it contains more information than just a version number
liveDump(String, int, int) - Method in class org.jnetpcap.winpcap.WinPcap
dumps the network traffic from an interface to a file.
liveDumpEnded(int) - Method in class org.jnetpcap.winpcap.WinPcap
Return the status of the kernel dump process, i.e.
lookupDev(StringBuilder) - Static method in class org.jnetpcap.Pcap
Returns a network device suitable for use with openLive and lookupNet.
lookupNet(String, PcapInteger, PcapInteger, StringBuilder) - Static method in class org.jnetpcap.Pcap
Determines the network number and mask associated with the network device.
loop(int, PcapHandler<T>, T) - Method in class org.jnetpcap.Pcap
Collect a group of packets.
LOOP_INFINATE - Static variable in class org.jnetpcap.Pcap
Value of packet count argument for loop method call which indicates that the loop should never exit, unless an error occured or breakloop call was used to interrupt the dispatcher.
LOOP_INTERRUPTED - Static variable in class org.jnetpcap.Pcap
Pcap status return code for loop and dispatch methods.

M

majorVersion() - Method in class org.jnetpcap.Pcap
Return the major version number of the pcap library used to write the savefile.
minorVersion() - Method in class org.jnetpcap.Pcap
Return the minor version number of the pcap library used to write the savefile.
MODE_BLOCKING - Static variable in class org.jnetpcap.Pcap
Flag which can be used with setNonBlock method to set the previously opened pcap descriptor into 'blocking' mode.
MODE_CAPT - Static variable in class org.jnetpcap.winpcap.WinPcap
default capture mode
MODE_MONITOR - Static variable in class org.jnetpcap.winpcap.WinPcap
monitor mode
MODE_NON_BLOCKING - Static variable in class org.jnetpcap.Pcap
Flag which can be used with setNonBlock method to set the previously opened pcap descriptor into 'non-blocking' mode.
MODE_NON_PROMISCUOUS - Static variable in class org.jnetpcap.Pcap
Flag used with openLive to specify that the interface should not be put into promisuous mode, but only if poassible.
MODE_PROMISCUOUS - Static variable in class org.jnetpcap.Pcap
Flag used with openLive to specify that the interface should be put into promisuous mode.
MODE_STAT - Static variable in class org.jnetpcap.winpcap.WinPcap
statistical mode

N

netdrop - Variable in class org.jnetpcap.PcapStat
number of packets lost on the network
next(PcapPktHdr) - Method in class org.jnetpcap.Pcap
Return the next available packet.
NEXT_EX_EOF - Static variable in class org.jnetpcap.Pcap
Exit code for nextEx method which indicates that pcap reached end of file while reading a 'savefile'.
NEXT_EX_NOT_OK - Static variable in class org.jnetpcap.Pcap
Exit code for nextEx method which indicates failure of some kind.
NEXT_EX_OK - Static variable in class org.jnetpcap.Pcap
Exit code for nextEx method which indicates success.
NEXT_EX_TIMEDOUT - Static variable in class org.jnetpcap.Pcap
Exit code for nextEx method which indicates timeout has expired before a packet was captured.
nextEx(PcapPktHdr, PcapPktBuffer) - Method in class org.jnetpcap.Pcap
Read a packet from an interface or from an offline capture.
nextPacket(T, long, int, int, int, ByteBuffer) - Method in interface org.jnetpcap.PcapHandler
Method gets called when a packet is available as dispatched by Libpcap dispatch or loop calls.
NO_SAMP - Static variable in class org.jnetpcap.winpcap.WinPcapSamp
No sampling has to be done on the current capture.
NOT_OK - Static variable in class org.jnetpcap.Pcap
Pcap status return code for most of the methods defined here.

O

offlineFilter(PcapBpfProgram, PcapPktHdr, ByteBuffer) - Static method in class org.jnetpcap.winpcap.WinPcap
Returns if a given filter applies to an offline packet.
OK - Static variable in class org.jnetpcap.Pcap
Pcap status return code for most of the methods defined here.
ONE_EVERY_N - Static variable in class org.jnetpcap.winpcap.WinPcapSamp
It defines that only 1 out of N packets must be returned to the user.
open(String, int, int, int, WinPcapRmtAuth, StringBuilder) - Static method in class org.jnetpcap.winpcap.WinPcap
Open a generic source in order to capture/send (WinPcap only) traffic.
openDead(int, int) - Static method in class org.jnetpcap.Pcap
Create a pcap_t structure without starting a capture.
openDead(int, int) - Static method in class org.jnetpcap.winpcap.WinPcap
Create a pcap_t structure without starting a capture.
OPENFLAG_DATATX_UDP - Static variable in class org.jnetpcap.winpcap.WinPcap
Defines if the data trasfer (in case of a remote capture) has to be done with UDP protocol and can only be used with WinPcap.open.
OPENFLAG_MAX_RESPONSIVENESS - Static variable in class org.jnetpcap.winpcap.WinPcap
This flag configures the adapter for maximum responsiveness and can only be used with WinPcap.open.
OPENFLAG_NOCAPTURE_LOCAL - Static variable in class org.jnetpcap.winpcap.WinPcap
Defines if the local adapter will capture its own generated traffic and can only be used with WinPcap.open.
OPENFLAG_NOCAPTURE_RPCAP - Static variable in class org.jnetpcap.winpcap.WinPcap
Defines if the remote probe will capture its own generated traffic and can only be used with WinPcap.open.
openLive(String, int, int, int, StringBuilder) - Static method in class org.jnetpcap.Pcap
Open a live capture associated with the specified network interface device.
openLive(String, int, int, int, StringBuilder) - Static method in class org.jnetpcap.winpcap.WinPcap
This method, overrides the generic libpcap based openLive method, and allocates a peer pcap object that allows WinPcap extensions.
openOffline(String, StringBuilder) - Static method in class org.jnetpcap.Pcap
Open a savefile in the tcpdump/libpcap format to read packets.
openOffline(String, StringBuilder) - Static method in class org.jnetpcap.winpcap.WinPcap
Open a savefile in the tcpdump/libpcap format to read packets.
org.jnetpcap - package org.jnetpcap
Core libpcap functionality available on all platforms.
org.jnetpcap.winpcap - package org.jnetpcap.winpcap
WinPcap extensions to libpcap avialable on a limited set of platforms.
out - Static variable in class org.jnetpcap.PcapStat
For toString() to build its string.

P

Pcap - Class in org.jnetpcap
This class is the main class peered with native pcap_t structure in libpcap and winpcap library impelementations.
Pcap() - Constructor for class org.jnetpcap.Pcap
Pcap object can only be created by calling one of the static Pcap.openLive(java.lang.String, int, int, int, java.lang.StringBuilder) methods.
PcapAddr - Class in org.jnetpcap
Class peered with native pcap_addr structure.
PcapAddr() - Constructor for class org.jnetpcap.PcapAddr
 
PcapBpfProgram - Class in org.jnetpcap
Class peered with native bpf_program structure.
PcapBpfProgram() - Constructor for class org.jnetpcap.PcapBpfProgram
Special constructor that allows creation of empty object ready for initialization.
PcapClosedException - Exception in org.jnetpcap
Thrown if Pcap object is access after it has been closed.
PcapClosedException() - Constructor for exception org.jnetpcap.PcapClosedException
 
PcapClosedException(String, Throwable) - Constructor for exception org.jnetpcap.PcapClosedException
 
PcapClosedException(String) - Constructor for exception org.jnetpcap.PcapClosedException
 
PcapClosedException(Throwable) - Constructor for exception org.jnetpcap.PcapClosedException
 
PcapDLT - Enum in org.jnetpcap
Constants that represent the Pcap's Data Link Type assignments.
PcapDumper - Class in org.jnetpcap
Class peered with native pcap_dumper structure.
PcapDumper() - Constructor for class org.jnetpcap.PcapDumper
 
PcapExtensionNotAvailableException - Exception in org.jnetpcap
Exception is thrown when a pcap extension is accessed, one of its methods, while it is not supported on this particular platform.
PcapExtensionNotAvailableException() - Constructor for exception org.jnetpcap.PcapExtensionNotAvailableException
 
PcapExtensionNotAvailableException(String, Throwable) - Constructor for exception org.jnetpcap.PcapExtensionNotAvailableException
 
PcapExtensionNotAvailableException(String) - Constructor for exception org.jnetpcap.PcapExtensionNotAvailableException
 
PcapExtensionNotAvailableException(Throwable) - Constructor for exception org.jnetpcap.PcapExtensionNotAvailableException
 
PcapHandler<T> - Interface in org.jnetpcap
A handler, listener or call back inteface that gets notified when a new packet has been captured.
PcapIf - Class in org.jnetpcap
Class peered with native pcap_if_t structure.
PcapIf() - Constructor for class org.jnetpcap.PcapIf
 
PcapInteger - Class in org.jnetpcap
An 32-bit integer reference that can be used to pass into pcap methods that require an integer pointer to be set as a return value.
PcapInteger(int) - Constructor for class org.jnetpcap.PcapInteger
Initializes the object with int value
PcapInteger() - Constructor for class org.jnetpcap.PcapInteger
Creates an 0 initialized integer object
PcapPktBuffer - Class in org.jnetpcap
Class used to pass back a reference to a ByteBuffer containing the packet data.
PcapPktBuffer() - Constructor for class org.jnetpcap.PcapPktBuffer
 
PcapPktHdr - Class in org.jnetpcap
Class peered with native pcap_pkthdr structure.
PcapPktHdr() - Constructor for class org.jnetpcap.PcapPktHdr
Initializes the timestamp fields to current time and length fields to 0.
PcapPktHdr(int, int) - Constructor for class org.jnetpcap.PcapPktHdr
Allocates a new packet header and initializes the caplen and len fields.
PcapPktHdr(long, int, int, int) - Constructor for class org.jnetpcap.PcapPktHdr
 
PcapSockAddr - Class in org.jnetpcap
Class peered with native struct sockaddr structure.
PcapSockAddr() - Constructor for class org.jnetpcap.PcapSockAddr
 
PcapStat - Class in org.jnetpcap
Class peered with native pcap_stat structure providing only the core statistics.
PcapStat() - Constructor for class org.jnetpcap.PcapStat
 

Q

queue(PcapPktHdr, ByteBuffer) - Method in class org.jnetpcap.winpcap.WinPcapSendQueue
Add a packet to a send queue.
queue(PcapPktHdr, byte[]) - Method in class org.jnetpcap.winpcap.WinPcapSendQueue
Add a packet to a send queue.

R

RMT_AUTH_NULL - Static variable in class org.jnetpcap.winpcap.WinPcapRmtAuth
It defines the NULL authentication.
RMT_AUTH_PWD - Static variable in class org.jnetpcap.winpcap.WinPcapRmtAuth
It defines the username/password authentication.

S

sendPacket(byte[]) - Method in class org.jnetpcap.Pcap
This method allows to send a raw packet to the network.
sendPacket(byte[], int, int) - Method in class org.jnetpcap.Pcap
This method allows to send a raw packet to the network.
sendPacket(ByteBuffer) - Method in class org.jnetpcap.Pcap
This method allows to send a raw packet to the network.
sendQueueAlloc(int) - Static method in class org.jnetpcap.winpcap.WinPcap
Allocate a send queue.
sendQueueDestroy(WinPcapSendQueue) - Static method in class org.jnetpcap.winpcap.WinPcap
Destroy a send queue.
sendQueueTransmit(WinPcapSendQueue, int) - Method in class org.jnetpcap.winpcap.WinPcap
Send a queue of raw packets to the network.
sent - Variable in class org.jnetpcap.PcapStat
number of packets sent by the server on the network
setBuff(int) - Method in class org.jnetpcap.winpcap.WinPcap
Set the size of the kernel buffer associated with an adapter.
setCaplen(int) - Method in class org.jnetpcap.PcapPktHdr
 
setDatalink(int) - Method in class org.jnetpcap.Pcap
Set the current data link type of the pcap descriptor to the type specified by dlt.
setFilter(PcapBpfProgram) - Method in class org.jnetpcap.Pcap
Associate a filter to a capture.
setLen(int) - Method in class org.jnetpcap.PcapPktHdr
 
setLen(int) - Method in class org.jnetpcap.winpcap.WinPcapSendQueue
Sets the peered pcap_send_queue.len field which specifies the urrent size of the queue, in bytes.
setMethod(int) - Method in class org.jnetpcap.winpcap.WinPcapSamp
Sets the current method type for capturing sampling.
setMinToCopy(int) - Method in class org.jnetpcap.winpcap.WinPcap
Set the minumum amount of data received by the kernel in a single call.
setMode(int) - Method in class org.jnetpcap.winpcap.WinPcap
Set the working mode of the interface p to mode.
setNonBlock(int, StringBuilder) - Method in class org.jnetpcap.Pcap
pcap_setnonblock() puts a capture descriptor, opened with pcap_open_live(), into ``non-blocking'' mode, or takes it out of ``non-blocking'' mode, depending on whether the nonblock argument is non-zero or zero.
setPassword(String) - Method in class org.jnetpcap.winpcap.WinPcapRmtAuth
Sets the string containing the password that has to be used on the remote machine for authentication.
setSampling() - Method in class org.jnetpcap.winpcap.WinPcap
Define a sampling method for packet capture.
setSeconds(long) - Method in class org.jnetpcap.PcapPktHdr
 
setType(int) - Method in class org.jnetpcap.winpcap.WinPcapRmtAuth
Type of the authentication required.
setUseconds(int) - Method in class org.jnetpcap.PcapPktHdr
 
setUsername(String) - Method in class org.jnetpcap.winpcap.WinPcapRmtAuth
Sets the string containing the username that has to be used on the remote machine for authentication.
setValue(int) - Method in class org.jnetpcap.PcapInteger
Sets a new value
setValue(int) - Method in class org.jnetpcap.winpcap.WinPcapSamp
Sets the value.
snapshot() - Method in class org.jnetpcap.Pcap
Return the dimension of the packet portion (in bytes) that is delivered to the application.
SRC_FILE - Static variable in class org.jnetpcap.winpcap.WinPcap
Used to create a source string using method createSrcStr, which will be used to open a local capture file.
SRC_IFLOCAL - Static variable in class org.jnetpcap.winpcap.WinPcap
Used to create a source string using method createSrcStr, which will be used to open a local network interface.
SRC_IFREMOTE - Static variable in class org.jnetpcap.winpcap.WinPcap
Used to create a source string using method createSrcStr,which will be used to open a remote connection (could be file, or network interface on remote system).
stats(PcapStat) - Method in class org.jnetpcap.Pcap
Returns statistics on the current capture.
statsEx() - Method in class org.jnetpcap.winpcap.WinPcap
This method extends the Pcap.stats method and allows more statistics to be returned.

T

toString() - Method in class org.jnetpcap.Pcap
Prints libVersion that Pcap is based on.
toString() - Method in class org.jnetpcap.PcapAddr
 
toString() - Method in class org.jnetpcap.PcapIf
Debug string.
toString() - Method in class org.jnetpcap.PcapInteger
Returns string representation of the integer
toString() - Method in class org.jnetpcap.PcapSockAddr
 
toString() - Method in class org.jnetpcap.PcapStat
 
toString() - Method in class org.jnetpcap.winpcap.WinPcapSamp
Returns the current values of this object as strings.
toString() - Method in class org.jnetpcap.winpcap.WinPcapStat
Dumps all the values as a string.
TRANSMIT_SYNCH_ASAP - Static variable in class org.jnetpcap.winpcap.WinPcap
Flag used with WinPcap.sendQueueTransmit(WinPcapSendQueue, int), to tell kernel to send packets as fast as possible, without synchronizing with packet timestamps found in headers.
TRANSMIT_SYNCH_USE_TIMESTAMP - Static variable in class org.jnetpcap.winpcap.WinPcap
Flag used with WinPcap.sendQueueTransmit(WinPcapSendQueue, int), to tell kernel to send packets at the rate that is determined by the timestamp with in the sendqueue.

V

value - Variable in enum org.jnetpcap.PcapDLT
Integer dlt value assigned by libpcap to this constant
valueOf(String) - Static method in enum org.jnetpcap.PcapDLT
Returns the enum constant of this type with the specified name.
valueOf(int) - Static method in enum org.jnetpcap.PcapDLT
Converts an integer value into a PcapDLT constant.
values() - Static method in enum org.jnetpcap.PcapDLT
Returns an array containing the constants of this enum type, in the order they are declared.

W

WinPcap - Class in org.jnetpcap.winpcap
Class peered with native pcap_t structure providing WinPcap specific extensions to libpcap library.
WinPcapRmtAuth - Class in org.jnetpcap.winpcap
Class peered with native pcap_rmtauth structure.
WinPcapRmtAuth() - Constructor for class org.jnetpcap.winpcap.WinPcapRmtAuth
Allocates an empty authentication object so that it may be setup
WinPcapRmtAuth(int, String, String) - Constructor for class org.jnetpcap.winpcap.WinPcapRmtAuth
Allocates and configures authentication object.
WinPcapSamp - Class in org.jnetpcap.winpcap
Class peered with native pcap_samp structure.
WinPcapSendQueue - Class in org.jnetpcap.winpcap
Class peered with native pcap_send_queue structure.
WinPcapSendQueue() - Constructor for class org.jnetpcap.winpcap.WinPcapSendQueue
Allocates default size buffer for use as a send queue.
WinPcapSendQueue(int) - Constructor for class org.jnetpcap.winpcap.WinPcapSendQueue
Allocates specific queue size
WinPcapSendQueue(ByteBuffer) - Constructor for class org.jnetpcap.winpcap.WinPcapSendQueue
The queue uses the supplied byte buffer which holds the buffers contents.
WinPcapSendQueue(byte[]) - Constructor for class org.jnetpcap.winpcap.WinPcapSendQueue
Creates a sendqueue by allocating a buffer to hold the supplied data.
WinPcapStat - Class in org.jnetpcap.winpcap
Class peered with native pcap_stat structure providing all available extensions part of WinPcap extensions.

A B C D E F G I J L M N O P Q R S T V W