NetPcap.create(com.slytechs.sdk.jnetpcap.PcapIf device)
Creates a capture handle for the specified device using two-stage
configuration.
NetPcap.create(com.slytechs.sdk.jnetpcap.PcapIf device,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Creates a capture handle for the specified device with custom packet settings.
Creates a capture handle for the named device using two-stage configuration.
NetPcap.create(String device,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Creates a capture handle for the named device with custom packet settings.
NetPcap.openDead(com.slytechs.sdk.jnetpcap.constant.PcapDlt linktype,
int snaplen)
Creates a "dead" handle for filter compilation or dump file writing.
NetPcap.openDead(com.slytechs.sdk.jnetpcap.constant.PcapDlt linktype,
int snaplen,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Creates a "dead" handle with custom packet settings.
NetPcap.openDeadWithTstampPrecision(com.slytechs.sdk.jnetpcap.constant.PcapDlt linktype,
int snaplen,
com.slytechs.sdk.jnetpcap.constant.PcapTStampPrecision precision)
Creates a "dead" handle with specific timestamp precision.
NetPcap.openDeadWithTstampPrecision(com.slytechs.sdk.jnetpcap.constant.PcapDlt linktype,
int snaplen,
com.slytechs.sdk.jnetpcap.constant.PcapTStampPrecision precision,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Creates a "dead" handle with specific timestamp precision and custom packet
settings.
NetPcap.openLive(com.slytechs.sdk.jnetpcap.PcapIf device,
int snaplen,
boolean promisc,
long timeout,
TimeUnit unit)
Opens a network interface for live packet capture.
NetPcap.openLive(com.slytechs.sdk.jnetpcap.PcapIf device,
int snaplen,
boolean promisc,
long timeout,
TimeUnit unit,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Opens a network interface for live packet capture with custom packet settings.
Opens a network interface for live packet capture.
NetPcap.openLive(String device,
int snaplen,
boolean promisc,
long timeout,
TimeUnit unit,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Opens a network interface for live packet capture with custom packet settings.
Opens a network interface for live packet capture.
NetPcap.openLive(String device,
int snaplen,
boolean promisc,
Duration timeout,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Opens a network interface for live packet capture with custom packet settings.
Opens a pcap or pcapng capture file for reading.
NetPcap.openOffline(File file,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Opens a capture file for reading with custom packet settings.
Opens a pcap or pcapng capture file for reading.
NetPcap.openOffline(String fname,
com.slytechs.sdk.protocol.core.PacketSettings settings)
Opens a capture file for reading with custom packet settings.
Prints error message to stderr.
Sets the kernel buffer size for the capture.
NetPcap.setBufferSize(long size,
com.slytechs.sdk.common.memory.MemoryUnit unit)
Sets the kernel capture buffer size.
Sets the data link type for the capture.
NetPcap.setDatalink(com.slytechs.sdk.jnetpcap.constant.PcapDlt dlt)
Sets the data link type using an Optional.
Sets the capture direction.
NetPcap.setDirection(com.slytechs.sdk.jnetpcap.constant.PcapDirection dir)
Sets the capture direction.
Sets the capture direction using an Optional.
NetPcap.setFilter(com.slytechs.sdk.jnetpcap.BpFilter bpfProgram)
Sets the BPF filter program.
Compiles and applies a BPF filter expression.
Compiles and applies a BPF filter expression with optimization control.
Sets the BPF filter using an Optional.
Enables or disables immediate mode.
Enables or disables non-blocking mode.
Enables or disables promiscuous mode.
Enables or disables monitor mode (wireless).
Sets the snapshot length.
Sets the read timeout in milliseconds.
Sets the read timeout with an explicit time unit.
NetPcap.setTstampPrecision(com.slytechs.sdk.jnetpcap.constant.PcapTStampPrecision precision)
Sets the timestamp precision.
NetPcap.setTstampType(com.slytechs.sdk.jnetpcap.constant.PcapTstampType type)
Sets the uncaught exception handler.
Sets the uncaught exception handler using a Consumer.