Uses of Class
org.jnetpcap.Pcap
Package
Description
The Packet Capture library provides a high level interface to packet capture
systems.
Provides support for Pcap on Microsoft Windows platforms.
-
Uses of Pcap in org.jnetpcap
Modifier and TypeClassDescriptionstatic final class
Linux only/specific calls.static class
Unix only/specific calls.class
Provides Pcap API method calls for up to libpcap version 0.4class
Provides Pcap API method calls for up to libpcap version 0.5class
Provides Pcap API method calls for up to libpcap version 0.6class
Provides Pcap API method calls for up to libpcap version 0.7class
Provides Pcap API method calls for up to libpcap version 0.8class
Provides Pcap API method calls for up to libpcap version 0.9class
Provides Pcap API method calls for up to libpcap version 1.0class
Provides Pcap API method calls for up to libpcap version 1.10class
Provides Pcap API method calls for up to libpcap version 1.2class
Provides Pcap API method calls for up to libpcap version 1.5class
Provides Pcap API method calls for up to libpcap version 1.9Modifier and TypeMethodDescriptionstatic Pcap
Create a live capture handle.static Pcap
Create a live capture handle.static Pcap
Open a fake pcap_t for compiling filters or opening a capture for output.static Pcap
Pcap.openDeadWithTstampPrecision
(PcapDlt linktype, int snaplen, PcapTStampPrecision precision) Open a fake pcap_t for compiling filters or opening a capture for output.static Pcap
Open a device for capturing.static Pcap
Open a device for capturing.static Pcap
Pcap.openOffline
(File file) Open a saved capture file for reading.static Pcap
Pcap.openOffline
(String fname) Open a saved capture file for reading.Print libpcap error message text.Pcap.setBufferSize
(int bufferSize) Sets the buffer size for a not-yet- activated capture handle.Pcap.setDatalink
(int dlt) Set the link-layer header type to be used by a capture device .Pcap.setDatalink
(Optional<PcapDlt> dlt) Set the link-layer header type to be used by a capture device .Pcap.setDatalink
(PcapDlt dlt) Set the link-layer header type to be used by a capture device .Pcap.setDirection
(int dir) pcap_setdirection() is used to specify a direction that packets will be captured.Pcap.setDirection
(Optional<PcapDirection> dir) Set the direction for which packets will be captured.Pcap.setDirection
(PcapDirection dir) Set the direction for which packets will be captured.set the filter.set the filter.Pcap.setImmediateMode
(boolean enable) Set immediate mode for a not-yet- activated capture handle.Pcap.setNonBlock
(boolean blockMode) Sets the state of non-blocking mode on a capture device.Pcap.setPromisc
(boolean promiscousMode) Set promiscuous mode for a not-yet-activated capture handle.Pcap.setRfmon
(boolean rfMonitor) Set monitor mode for a not-yet-activated capture handle.Pcap.setSnaplen
(int snaplen) Set the snapshot length for a not-yet-activated capture handle.Pcap.setTimeout
(int timeoutInMillis) Set the packet buffer timeout for a not-yet-activated capture handle.Pcap.setTstampPrecision
(PcapTStampPrecision precision) Set the time stamp precision returned in captures.final Pcap
Pcap1_5.setTstampPrecision
(PcapTStampPrecision precision) Sets the tstamp precision.Pcap.setTstampType
(PcapTstampType type) Set the time stamp type to be used by a capture device.final Pcap
Pcap1_2.setTstampType
(PcapTstampType type) Sets the tstamp type.Pcap.setUncaughtExceptionHandler
(Thread.UncaughtExceptionHandler exceptionHandler) Sets the uncaught exception handler forloop(int, org.jnetpcap.PcapDumper)
anddispatch(int, org.jnetpcap.PcapDumper)
methods.Pcap.setUncaughtExceptionHandler
(Consumer<? super Throwable> exceptionHandler) Sets the uncaught exception handler forloop(int, org.jnetpcap.PcapDumper)
anddispatch(int, org.jnetpcap.PcapDumper)
methods.Pcap0_4.setUncaughtExceptionHandler
(Thread.UncaughtExceptionHandler exceptionHandler) Sets the uncaught exception handler forPcap0_4.loop(int, org.jnetpcap.PcapDumper)
andPcap0_4.dispatch(int, org.jnetpcap.PcapHandler.OfMemorySegment<U>, U)
methods. -
Uses of Pcap in org.jnetpcap.windows