aboutsummaryrefslogtreecommitdiff
path: root/src/expr/cmp.rs
diff options
context:
space:
mode:
authorSimon THOBY <git@nightmared.fr>2022-11-15 22:25:36 +0100
committerSimon THOBY <git@nightmared.fr>2022-11-15 22:25:36 +0100
commitd1170d81c85254d2fe5ef5d3fc92cc6eb35357a4 (patch)
tree6f5645e3b7313681f083135a3718a8da129574f3 /src/expr/cmp.rs
parent22edb0197854bf4f504e833e69b0e545d382f065 (diff)
exprs: implement bitwise and add support for unknown expressions
Diffstat (limited to 'src/expr/cmp.rs')
-rw-r--r--src/expr/cmp.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/expr/cmp.rs b/src/expr/cmp.rs
index f6ea900..d8f825f 100644
--- a/src/expr/cmp.rs
+++ b/src/expr/cmp.rs
@@ -157,31 +157,6 @@ impl<const N: usize> Expression for Cmp<[u8; N]> {
}
}
-#[macro_export(local_inner_macros)]
-macro_rules! nft_expr_cmp {
- (@cmp_op ==) => {
- $crate::expr::CmpOp::Eq
- };
- (@cmp_op !=) => {
- $crate::expr::CmpOp::Neq
- };
- (@cmp_op <) => {
- $crate::expr::CmpOp::Lt
- };
- (@cmp_op <=) => {
- $crate::expr::CmpOp::Lte
- };
- (@cmp_op >) => {
- $crate::expr::CmpOp::Gt
- };
- (@cmp_op >=) => {
- $crate::expr::CmpOp::Gte
- };
- ($op:tt $data:expr) => {
- $crate::expr::Cmp::new(nft_expr_cmp!(@cmp_op $op), $data)
- };
-}
-
/// Can be used to compare the value loaded by [`Meta::IifName`] and [`Meta::OifName`]. Please note
/// that it is faster to check interface index than name.
///