]> git.proxmox.com Git - proxmox-firewall.git/commit
nftables: types: add conversion traits
authorStefan Hanreich <s.hanreich@proxmox.com>
Fri, 29 Mar 2024 15:52:06 +0000 (16:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Apr 2024 19:46:15 +0000 (21:46 +0200)
commit74602577f552e1a7545fcc86c7bcc49fd6c95b0b
tree4605de0926a5a683595772017748d970a0a14b89
parent6b40860fd569bab84b265f29840e4bf162158c4c
nftables: types: add conversion traits

Some parts of the firewall config map directly to nftables objects, so
we introduce conversion traits for convenient conversion into the
respective nftables objects / types.

They are guarded behind a feature, so the nftables crate can be used
standalone without depending on the proxmox-ve-config crate.

Co-authored-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
proxmox-nftables/src/types.rs