Module pftables_rs::bridge[][src]

This module provides Rust-friendly wrappers for the repr(C) structs used by OpenBSD’s pf.

Modules

bindings

Bindings to structs and constants used by OpenBSD’s pf. These bindings depend on unsafe features, including unions and raw pointers; Rust-friendly wrappers are provided in the bridge module.

Structs

PfIocTable

A Rust-friendly wrapper to #[repr(C)] struct pfioc_table

PfrAddr

A Rust-friendly wrapper #[repr(C)] struct pfr_addr

PfrTable

A Rust-friendly wrapper to #[repr(C)] pfr_table

Enums

PfIocCommand

Traits

Translate

Represents a Rust-friendly struct with an associated repr(C) equivalent