summaryrefslogtreecommitdiffstats
path: root/src/ct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ct.c')
-rw-r--r--src/ct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ct.c b/src/ct.c
index 1d50382b..e77c3201 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -357,7 +357,7 @@ static void ct_expr_pctx_update(struct proto_ctx *ctx, const struct expr *expr)
proto_ctx_update(ctx, left->ct.base + 1, &expr->location, desc);
}
-static const struct expr_ops ct_expr_ops = {
+const struct expr_ops ct_expr_ops = {
.type = EXPR_CT,
.name = "ct",
.print = ct_expr_print,
@@ -373,7 +373,7 @@ struct expr *ct_expr_alloc(const struct location *loc, enum nft_ct_keys key,
const struct ct_template *tmpl = &ct_templates[key];
struct expr *expr;
- expr = expr_alloc(loc, &ct_expr_ops, tmpl->dtype,
+ expr = expr_alloc(loc, EXPR_CT, tmpl->dtype,
tmpl->byteorder, tmpl->len);
expr->ct.key = key;
expr->ct.direction = direction;