Expand description
Pure Rust implementation of ipset/nftset operations via netlink.
This crate provides functions to add, check, and remove IP addresses from Linux ipset and nftables sets using the netlink protocol.
On non-Linux platforms, all operations return Err(IpSetError::UnsupportedPlatform).
Re-exports§
pub use ipset::IpSetCreateOptions;pub use ipset::IpSetFamily;pub use ipset::IpSetType;pub use ipset::ipset_add;pub use ipset::ipset_create;pub use ipset::ipset_del;pub use ipset::ipset_destroy;pub use ipset::ipset_flush;pub use ipset::ipset_list;pub use ipset::ipset_test;pub use nftset::NftSetCreateOptions;pub use nftset::NftSetType;pub use nftset::nftset_add;pub use nftset::nftset_create_set;pub use nftset::nftset_create_table;pub use nftset::nftset_del;pub use nftset::nftset_delete_set;pub use nftset::nftset_delete_table;pub use nftset::nftset_list;pub use nftset::nftset_list_tables;pub use nftset::nftset_test;
Modules§
Structs§
- IpEntry
- IP address with optional timeout for set operations.
Enums§
- IpSet
Error - Error type for ipset/nftset operations.