Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmmk/rustcap
Rust wrapper for libpcap
https://github.com/jmmk/rustcap
libpcap packet rust sniffing
Last synced: about 2 months ago
JSON representation
Rust wrapper for libpcap
- Host: GitHub
- URL: https://github.com/jmmk/rustcap
- Owner: jmmk
- License: mit
- Archived: true
- Created: 2018-11-05T03:23:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-19T02:12:31.000Z (over 1 year ago)
- Last Synced: 2024-10-31T11:45:18.539Z (3 months ago)
- Topics: libpcap, packet, rust, sniffing
- Language: Rust
- Homepage:
- Size: 40 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
- awesome-network-stuff - **3**星
README
# Archived
This library is very minimal and is not maintained, so I have archived it. I recommend looking at alternatives like [libpnet](https://github.com/libpnet/libpnet) and [rust-pcap/pcap](https://github.com/rust-pcap/pcap).
# Rustcap
Rust wrapper for libpcap[![*nix build status](https://travis-ci.org/jmmk/rustcap.svg?branch=master)](https://travis-ci.org/jmmk/rustcap)
[![Windows build status](https://ci.appveyor.com/api/projects/status/6rf0ygpcww6fegt2/branch/master?svg=true)](https://ci.appveyor.com/project/jmmk/rustcap/branch/master)
[![](http://meritbadge.herokuapp.com/rustcap)](https://crates.io/crates/rustcap)### Developing
#### Windows
By default, rustcap will link with library files from the [WinPcap SDK](https://www.winpcap.org/devel.htm). These files (for both MSVC and MinGW) are included in this repo under the terms of the WinPcap LicenseMSVC:
- Packet.lib
- wpcap.libMinGW:
- libpacket.a
- libwpcap.aTo link with a different version of WinPcap such as [Npcap](https://nmap.org/npcap/), set env var... TODO.
Note that Npcap is subject to a different License; see the documentation for details.#### *nix
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### Runtime
#### Windows
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 installedYou can download and install from the following sources:
- [Winpcap](https://www.winpcap.org/install/default.htm)
- [Npcap](https://nmap.org/npcap/) - Look for the link to the installer. Install in Winpcap compatibility mode
- [Winpcap updated to NDIS 6](http://www.win10pcap.org/)Each download is subject to a different License; see the documentation for details.
#### *nix
libpcap will need to be available on the library path