p0f_api

Crates.iop0f_api
lib.rsp0f_api
version0.1.2
sourcesrc
created_at2016-07-16 11:46:04.928373
updated_at2023-01-22 02:30:14.46616
descriptionInterface for querying p0f unix socket API.
homepage
repositoryhttps://github.com/emkw/rust-p0f_api.git
max_upload_size
id5681
size12,573
(emkw)

documentation

README

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.

Commit count: 9

cargo fmt