Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 537 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 537 Bytes

p0f_api

This crate provides Rust interface for communicating with p0f unix socket query API, for use with std::net::IpAddr, std::net::Ipv4Addr and std::net::Ipv6Addr.
Since it uses Rust std::os::unix::net::UnixStream it won't work on systems that do not support it.

It has been developed with p0f version 3.09b.

How to use it?

Cargo.toml:

[dependencies]
p0f_api = "~0.1.2"

Code:

Please see examples/query.rs.

Minimum Supported Rust Version (MSRV):

1.10