From 14fd3ad720f6ea629814b8e9307169010f596f6b Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 24 May 2017 20:05:54 +0200 Subject: src: prepare for future ct timeout policy support Change all places that expect ct helper tokens (ct helper configuration) to CT HELPER. ct_obj_kind is removed. When we add ct timeout support, we will add a new ct_timeout_block, plus extra rules. We won't extend ct_block, it prevents the parser from detecting bogus syntax that only makes sense for ct helper but not for something else for instance. ct_block should be renamed to ct_helper_block, will be done in followup patch. Signed-off-by: Florian Westphal Acked-by: Pablo Neira Ayuso --- src/ct.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/ct.c') diff --git a/src/ct.c b/src/ct.c index 2b0e2a09..0e9b17cd 100644 --- a/src/ct.c +++ b/src/ct.c @@ -334,16 +334,6 @@ static const struct expr_ops ct_expr_ops = { .pctx_update = ct_expr_pctx_update, }; -struct error_record *ct_objtype_parse(const struct location *loc, const char *str, int *type) -{ - if (strcmp(str, "helper") == 0) { - *type = NFT_OBJECT_CT_HELPER; - return NULL; - } - - return error(loc, "unknown ct class '%s', want 'helper'", str); -} - struct expr *ct_expr_alloc(const struct location *loc, enum nft_ct_keys key, int8_t direction) { -- cgit v1.2.3