aboutsummaryrefslogtreecommitdiff
path: root/nftnl/src/expr/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nftnl/src/expr/mod.rs')
-rw-r--r--nftnl/src/expr/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/nftnl/src/expr/mod.rs b/nftnl/src/expr/mod.rs
index 84d7035..e4c4adb 100644
--- a/nftnl/src/expr/mod.rs
+++ b/nftnl/src/expr/mod.rs
@@ -3,13 +3,14 @@
//!
//! [`Rule`]: struct.Rule.html
+use super::rule::Rule;
use nftnl_sys as sys;
/// Trait for every safe wrapper of an nftables expression.
pub trait Expression {
/// Allocates and returns the low level `nftnl_expr` representation of this expression.
/// The caller to this method is responsible for freeing the expression.
- fn to_expr(&self) -> *mut sys::nftnl_expr;
+ fn to_expr(&self, rule: &Rule) -> *mut sys::nftnl_expr;
}
mod bitwise;
@@ -39,6 +40,9 @@ pub use self::meta::*;
mod payload;
pub use self::payload::*;
+mod verdict;
+pub use self::verdict::*;
+
#[macro_export(local_inner_macros)]
macro_rules! nft_expr {
(bitwise mask $mask:expr,xor $xor:expr) => {