path: root/src/ct.c
diff options
authorPablo Neira Ayuso <>2019-08-07 23:51:18 +0200
committerPablo Neira Ayuso <>2019-08-08 12:03:26 +0200
commita805eab34e34aaf2f08c607e770ec0b8df992f4a (patch)
tree20cbd71040e52ee4d4fe3dc450e5d9d6eeb71d1d /src/ct.c
parente8417f7bcbfe20524307557f8687bdd3a665f73e (diff)
src: add parse_ctx object
This object stores the dynamic symbol tables that are loaded from files. Pass this object to datatype parse functions, although this new parameter is not used yet, this is just a preparation patch. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src/ct.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ct.c b/src/ct.c
index 14cc0e5e..c66b327a 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -171,7 +171,8 @@ static void ct_label_type_print(const struct expr *expr,
nft_print(octx, "%lu", bit);
-static struct error_record *ct_label_type_parse(const struct expr *sym,
+static struct error_record *ct_label_type_parse(struct parse_ctx *ctx,
+ const struct expr *sym,
struct expr **res)
const struct symbolic_constant *s;