init

fnPcapStatus init(uint opts, out string errBuf)

Initializes the libpcap library.

This function should be called before any other libpcap functions in some environments, especially for newer libpcap versions (1.10+).

Parameters

optsInitialization options (currently unused, pass 0).
errBufBuffer to receive error information.

Returns

A PcapStatus indicating success or error.