Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- accept(Packet) - Method in interface com.slytechs.sdk.jnetpcap.api.PacketHandler.OfPacketConsumer
-
Consumes a packet object.
- activate() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Activates a pcap handle created with
create(). - activate() - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Activates this capture handle.
- activateLicense() - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Explicitly activates the SDK license using automatic key resolution.
- activateLicense(String) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Explicitly activates the SDK license using the specified key.
- API Layers - Section in package com.slytechs.sdk.jnetpcap.api
B
- BaseNetPcap - Class in com.slytechs.sdk.jnetpcap.api
-
Base class for NetPcap providing delegation to low-level Pcap bindings.
- BaseNetPcap(Pcap) - Constructor for class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
- Berkeley Packet Filter (BPF) - Section in package com.slytechs.sdk.jnetpcap.api
- breakloop() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Forces a
dispatch()orloop()call to return.
C
- canSetRfmon() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Checks whether monitor mode can be set on this capture handle.
- Capture Methods - Section in package com.slytechs.sdk.jnetpcap.api
- checkVersion(String) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Checks that the application version is compatible with this library version.
- close() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Closes the capture handle and releases resources.
- com.slytechs.sdk.jnetpcap.api - module com.slytechs.sdk.jnetpcap.api
-
High-level packet capture and protocol dissection API for jNetPcap.
- com.slytechs.sdk.jnetpcap.api - package com.slytechs.sdk.jnetpcap.api
-
jNetPcap 3.0 API - High-performance packet capture with protocol dissection.
- Common Filter Expressions - Section in package com.slytechs.sdk.jnetpcap.api
- compile(String, boolean) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Compiles a filter expression into a BPF program.
- compile(String, boolean, int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Compiles a filter expression with netmask.
- Configuration: NetPcap vs PacketSettings - Section in package com.slytechs.sdk.jnetpcap.api
- Core Components - Section in package com.slytechs.sdk.jnetpcap.api
- create(PcapIf) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Creates a capture handle for the specified device using two-stage configuration.
- create(PcapIf, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Creates a capture handle for the specified device with custom packet settings.
- create(String) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Creates a capture handle for the named device using two-stage configuration.
- create(String, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Creates a capture handle for the named device with custom packet settings.
D
- datalink() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the link-layer header type.
- dataLinkExt() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the link-layer header type with extended information.
- dispatch(int, PacketHandler.OfPacket, U) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Processes up to
countpackets, passing each to the handler with a user context object. - dispatch(int, PacketHandler.OfPacketConsumer) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Processes up to
countpackets, passing each to a consumer-style handler. - dispatch(int, PcapDumper) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Processes packets and writes them to a dump file.
- dispatch(int, PcapHandler.NativeCallback, MemorySegment) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Processes packets using a native callback.
- dispatch(int, PcapHandler.OfArray, U) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Processes packets using an array-based handler.
- dispatch(int, PcapHandler.OfMemorySegment, U) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Processes packets using a memory segment handler.
- Dissection Modes - Section in package com.slytechs.sdk.jnetpcap.api
- dumpOpen(String) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Opens a dump file for writing packets.
F
- Factory Methods - Section in class com.slytechs.sdk.jnetpcap.api.NetPcap
- findAllDevs() - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Returns all network interfaces available for capture on this system.
- findAllDevsEx(String, PcapSrc, String, String) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Returns network interfaces from a remote RPCAP source or directory of savefiles.
- Full Configuration Example - Section in package com.slytechs.sdk.jnetpcap.api
G
- geterr() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the error message for the last pcap error.
- getName() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the device name associated with this handle.
- getNonBlock() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the current non-blocking mode state.
- getPcapHeaderABI() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the pcap header ABI information.
- getTstampPrecision() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the timestamp precision for this handle.
H
- handlePacket(U, Packet) - Method in interface com.slytechs.sdk.jnetpcap.api.PacketHandler.OfPacket
-
Handles a parsed packet object.
I
- inject(byte[]) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Transmits a packet, returning the number of bytes sent.
- inject(byte[], int, int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Transmits a portion of a packet array.
- inject(Packet) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Injects a packet on the network, returning the number of bytes sent.
- inject(MemorySegment, int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Transmits a packet from native memory.
- inject(ByteBuffer) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Transmits a packet from a ByteBuffer.
- isActivated() - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Returns whether this handle has been activated.
- isSwapped() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Checks if the capture file has different byte order.
K
- Key Classes - Section in module com.slytechs.sdk.jnetpcap.api
L
- listDataLinks() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the list of supported data link types.
- listTstampTypes() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the list of supported timestamp types.
- Live Capture with BPF Filter - Section in class com.slytechs.sdk.jnetpcap.api.NetPcap
- loop(int, PacketHandler.OfPacket, U) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Processes packets in a loop with a user context object.
- loop(int, PacketHandler.OfPacketConsumer) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Processes packets in a loop with a consumer-style handler.
- loop(int, PcapDumper) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Processes packets in a loop and writes to a dump file.
- loop(int, PcapHandler.NativeCallback, MemorySegment) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Processes packets in a loop using a native callback.
- loop(int, PcapHandler.OfArray, U) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Processes packets in a loop using an array handler.
- loop(int, PcapHandler.OfMemorySegment, U) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Processes packets in a loop using a memory segment handler.
M
- main(String[]) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
- majorVersion() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the major version of the pcap file format.
- Memory Model - Section in package com.slytechs.sdk.jnetpcap.api
- Memory Types - Section in package com.slytechs.sdk.jnetpcap.api
- minorVersion() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the minor version of the pcap file format.
- Module Dependencies - Section in module com.slytechs.sdk.jnetpcap.api
- Multi-threaded Producer-Consumer - Section in class com.slytechs.sdk.jnetpcap.api.NetPcap
N
- name() - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
- NetPcap - Class in com.slytechs.sdk.jnetpcap.api
-
High-level packet capture and protocol dissection API.
- NetPcap Configuration - Section in package com.slytechs.sdk.jnetpcap.api
- next() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Retrieves the next packet.
- next() - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Returns the next available packet without blocking indefinitely.
- nextEx() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Retrieves the next packet with extended status.
- nextEx() - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Returns the next available packet, distinguishing timeout from EOF.
O
- Offline File Reading with PacketSettings - Section in package com.slytechs.sdk.jnetpcap.api
- Offline File Reading with Protocol Dissection - Section in class com.slytechs.sdk.jnetpcap.api.NetPcap
- openDead(PcapDlt, int) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Creates a "dead" handle for filter compilation or dump file writing.
- openDead(PcapDlt, int, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Creates a "dead" handle with custom packet settings.
- openDeadWithTstampPrecision(PcapDlt, int, PcapTStampPrecision) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Creates a "dead" handle with specific timestamp precision.
- openDeadWithTstampPrecision(PcapDlt, int, PcapTStampPrecision, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Creates a "dead" handle with specific timestamp precision and custom packet settings.
- openLive(PcapIf, int, boolean, long, TimeUnit) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a network interface for live packet capture.
- openLive(PcapIf, int, boolean, long, TimeUnit, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a network interface for live packet capture with custom packet settings.
- openLive(String, int, boolean, long, TimeUnit) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a network interface for live packet capture.
- openLive(String, int, boolean, long, TimeUnit, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a network interface for live packet capture with custom packet settings.
- openLive(String, int, boolean, Duration) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a network interface for live packet capture.
- openLive(String, int, boolean, Duration, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a network interface for live packet capture with custom packet settings.
- openOffline(File) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a pcap or pcapng capture file for reading.
- openOffline(File, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a capture file for reading with custom packet settings.
- openOffline(String) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a pcap or pcapng capture file for reading.
- openOffline(String, PacketSettings) - Static method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Opens a capture file for reading with custom packet settings.
- order() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the byte order of the capture file.
P
- Packet Descriptors - Section in package com.slytechs.sdk.jnetpcap.api
- PacketHandler - Interface in com.slytechs.sdk.jnetpcap.api
-
A marker interface for different types of packet handlers used in packet capture and processing.
- PacketHandler.OfPacket<U> - Interface in com.slytechs.sdk.jnetpcap.api
-
Provides high-level packet handling using the Packet object model.
- PacketHandler.OfPacketConsumer - Interface in com.slytechs.sdk.jnetpcap.api
-
Provides a Java Consumer-style interface for packet handling.
- Packet Persistence - Section in package com.slytechs.sdk.jnetpcap.api
- PacketSettings Configuration - Section in package com.slytechs.sdk.jnetpcap.api
- pcapApi - Variable in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
- perror(String) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Prints error message to stderr.
- perror(String) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Prints error message to stderr.
- Platform Support - Section in package com.slytechs.sdk.jnetpcap.api
- Protocol Dissection - Section in package com.slytechs.sdk.jnetpcap.api
Q
- Quick Start - Section in module com.slytechs.sdk.jnetpcap.api
- Quick Start - Section in package com.slytechs.sdk.jnetpcap.api
R
- Related Packages - Section in package com.slytechs.sdk.jnetpcap.api
S
- sendPacket(byte[]) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sends a raw packet on the network.
- sendPacket(byte[], int, int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sends a portion of a raw packet.
- sendPacket(Packet) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Transmits a packet on the network.
- sendPacket(MemorySegment, int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sends a raw packet from native memory.
- sendPacket(ByteBuffer) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sends a raw packet from a ByteBuffer.
- setBufferSize(int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the kernel buffer size for the capture.
- setBufferSize(int) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the kernel buffer size for the capture.
- setBufferSize(long, MemoryUnit) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the kernel capture buffer size.
- setDatalink(int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the data link type for the capture.
- setDatalink(int) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the data link type for the capture.
- setDatalink(PcapDlt) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the data link type.
- setDatalink(PcapDlt) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the data link type.
- setDatalink(Optional) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the data link type using an Optional.
- setDatalink(Optional) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the data link type using an Optional.
- setDirection(int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the capture direction.
- setDirection(int) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the capture direction.
- setDirection(PcapDirection) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the capture direction.
- setDirection(PcapDirection) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the capture direction.
- setDirection(Optional) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the capture direction using an Optional.
- setDirection(Optional) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the capture direction using an Optional.
- setFilter(BpFilter) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the BPF filter program.
- setFilter(BpFilter) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the BPF filter program.
- setFilter(String) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Compiles and applies a BPF filter expression.
- setFilter(String, boolean) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Compiles and applies a BPF filter expression with optimization control.
- setFilter(Optional) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the BPF filter using an Optional.
- setFilter(Optional) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the BPF filter using an Optional.
- setImmediateMode(boolean) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Enables or disables immediate mode.
- setImmediateMode(boolean) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Enables or disables immediate mode.
- setNonBlock(boolean) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Enables or disables non-blocking mode.
- setNonBlock(boolean) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Enables or disables non-blocking mode.
- setPromisc(boolean) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Enables or disables promiscuous mode.
- setPromisc(boolean) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Enables or disables promiscuous mode.
- setRfmon(boolean) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Enables or disables monitor mode (wireless).
- setRfmon(boolean) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Enables or disables monitor mode (wireless).
- setSnaplen(int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the snapshot length.
- setSnaplen(int) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the snapshot length.
- setTimeout(int) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the read timeout in milliseconds.
- setTimeout(int) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the read timeout in milliseconds.
- setTimeout(long, TimeUnit) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the read timeout with an explicit time unit.
- setTimeout(Duration) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the read timeout using a
Duration. - setTstampPrecision(PcapTStampPrecision) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the timestamp precision.
- setTstampPrecision(PcapTStampPrecision) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the timestamp precision.
- setTstampType(PcapTstampType) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the timestamp type.
- setTstampType(PcapTstampType) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the timestamp type.
- setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the uncaught exception handler.
- setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the uncaught exception handler.
- setUncaughtExceptionHandler(Consumer) - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Sets the uncaught exception handler using a Consumer.
- setUncaughtExceptionHandler(Consumer) - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Sets the uncaught exception handler using a Consumer.
- Simple Live Capture - Section in package com.slytechs.sdk.jnetpcap.api
- snapshot() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns the snapshot length.
- stats() - Method in class com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Returns capture statistics.
T
- Thread Safety - Section in package com.slytechs.sdk.jnetpcap.api
- toString() - Method in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
Returns a string representation of this handle including the device name and activation state.
- Tunneled Protocol Access - Section in package com.slytechs.sdk.jnetpcap.api
- Two-Stage Capture Configuration - Section in package com.slytechs.sdk.jnetpcap.api
U
- Usage Examples - Section in class com.slytechs.sdk.jnetpcap.api.NetPcap
V
- VERSION - Static variable in class com.slytechs.sdk.jnetpcap.api.NetPcap
-
The jNetPcap library version string.
Z
- Zero-Allocation Header Access - Section in package com.slytechs.sdk.jnetpcap.api
All Classes and Interfaces|All Packages|Constant Field Values