ddn.net.pcap.device
High-level device discovery and configuration API.
License
BSD-3-Clause
Copyright
© 2026 DDN (D Developer Network) Members
Types 3
structDeviceAddress
Represents a network device address.
Address data is deep-copied from libpcap's internal storage so that it remains valid after device enumeration returns.
Fields
private ubyte[] _addrprivate ubyte[] _netmaskprivate ubyte[] _broadaddrprivate ubyte[] _dstaddrMethods
structDevice
Represents a network device.
structLiveCaptureBuilder
Builder for configuring and opening a live capture.
Fields
string _deviceNameint _snaplenbool _promiscint _timeoutbool _immediateint _bufferSizeMethods
Constructors
this(string deviceName)Functions 2
private fn
ubyte[] copySockaddr(const(SocketAddress) * sa) pure nothrowCopies raw sockaddr bytes into an owned buffer.