Crates.io | rustcap |
lib.rs | rustcap |
version | 0.1.2 |
source | src |
created_at | 2018-11-05 04:34:53.413352 |
updated_at | 2018-11-12 04:59:12.549299 |
description | Wrapper for libpcap |
homepage | https://github.com/jmmk/rustcap |
repository | https://github.com/jmmk/rustcap |
max_upload_size | |
id | 94756 |
size | 25,201 |
Rust wrapper for libpcap
By default, rustcap will link with library files from the WinPcap SDK. These files (for both MSVC and MinGW) are included in this repo under the terms of the WinPcap License
MSVC:
MinGW:
To link with a different version of WinPcap such as Npcap, set env var... TODO. Note that Npcap is subject to a different License; see the documentation for details.
By default, rustcap will link with libpcap found by pkg-config
or pcap-config
(usually /usr/lib/libpcap.dylib
or /usr/lib/libpcap.so
).
To change this, set env var... TODO
At runtime, rustcap will expect Packet.dll and wpcap.dll to be available in the default DLL search paths (see https://msdn.microsoft.com/en-us/library/7d83bc18.aspx). This means in order to run tests and for any end user applications using this code, winpcap and its driver will need to be installed
You can download and install from the following sources:
Each download is subject to a different License; see the documentation for details.
libpcap will need to be available on the library path