ddn.lib.pcap.remote
Remote capture support for libpcap.
This module provides functions for capturing packets from remote hosts using the RPCAP protocol. These functions are only available if the linked libpcap was built with remote capture support.
License
BSD-3-Clause
Copyright
© 2026 DDN (D Developer Network) Members
Types 3
enumSourceType : int
Remote capture source types.
FILE = 2local savefile
IFLOCAL = 3local network interface
IFREMOTE = 4interface on a remote host, using RPCAP
enumOpenFlags : uint
Flags for pcap_open.
PROMISCUOUS = 0x00000001
DATATX_UDP = 0x00000002
NOCAPTURE_RPCAP = 0x00000004
NOCAPTURE_LOCAL = 0x00000008
MAX_RESPONSIVENESS = 0x00000010
enumAuthType : int
Remote authentication methods.
NULL = 0
PWD = 1
Functions 10
fn
string createSrcStr(SourceType type, string host, string port, string name, out string errBuf)Creates a source string for use with `pcap_open`.fn
int parseSrcStr(string source, out SourceType type, out string host, out string port, out string name, out string errBuf)Parses a source string into its components.fn
PcapHandle open(string source, int snaplen, int flags, int readTimeout, pcap_rmtauth * auth, out string errBuf)Opens a remote capture or local file using the modern `pcap_open` API.fn
PcapIfList findAllDevsEx(string source, pcap_rmtauth * auth, out string errBuf)Extension of `findAllDevs` that supports remote hosts.fn
int remoteactAccept(string address, string port, string hostlist, out string connectingHost, pcap_rmtauth * auth, out string errBuf)Accepts an RPCAP connection.fn
int remoteactAcceptEx(string address, string port, string hostlist, out string connectingHost, pcap_rmtauth * auth, int usesUdp, out string errBuf)Accepts an RPCAP connection (extended).