summaryrefslogtreecommitdiffstats
path: root/src/expr/fib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/fib.c')
-rw-r--r--src/expr/fib.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/expr/fib.c b/src/expr/fib.c
index 2f2d219..9475af4 100644
--- a/src/expr/fib.c
+++ b/src/expr/fib.c
@@ -205,28 +205,10 @@ nftnl_expr_fib_snprintf(char *buf, size_t len, uint32_t type,
return -1;
}
-static bool nftnl_expr_fib_cmp(const struct nftnl_expr *e1,
- const struct nftnl_expr *e2)
-{
- struct nftnl_expr_fib *h1 = nftnl_expr_data(e1);
- struct nftnl_expr_fib *h2 = nftnl_expr_data(e2);
- bool eq = true;
-
- if (e1->flags & (1 << NFTNL_EXPR_FIB_RESULT))
- eq &= (h1->result == h2->result);
- if (e1->flags & (1 << NFTNL_EXPR_FIB_DREG))
- eq &= (h1->dreg == h2->dreg);
- if (e1->flags & (1 << NFTNL_EXPR_FIB_FLAGS))
- eq &= (h1->flags == h2->flags);
-
- return eq;
-}
-
struct expr_ops expr_ops_fib = {
.name = "fib",
.alloc_len = sizeof(struct nftnl_expr_fib),
.max_attr = NFTA_FIB_MAX,
- .cmp = nftnl_expr_fib_cmp,
.set = nftnl_expr_fib_set,
.get = nftnl_expr_fib_get,
.parse = nftnl_expr_fib_parse,