summaryrefslogtreecommitdiffstats
path: root/src/ct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ct.c')
-rw-r--r--src/ct.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ct.c b/src/ct.c
index 00895394..43dd9878 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -131,10 +131,16 @@ static void ct_expr_print(const struct expr *expr)
printf("ct %s", ct_templates[expr->ct.key].token);
}
+static void ct_expr_clone(struct expr *new, const struct expr *expr)
+{
+ new->ct.key = expr->ct.key;
+}
+
static const struct expr_ops ct_expr_ops = {
.type = EXPR_CT,
.name = "ct",
.print = ct_expr_print,
+ .clone = ct_expr_clone,
};
struct expr *ct_expr_alloc(const struct location *loc, enum nft_ct_keys key)