diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-07 23:51:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-08 12:03:26 +0200 |
commit | a805eab34e34aaf2f08c607e770ec0b8df992f4a (patch) | |
tree | 20cbd71040e52ee4d4fe3dc450e5d9d6eeb71d1d /include/nftables.h | |
parent | e8417f7bcbfe20524307557f8687bdd3a665f73e (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 <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r-- | include/nftables.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/nftables.h b/include/nftables.h index ed446e2d..407d7613 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -15,6 +15,13 @@ struct cookie { size_t pos; }; +struct symbol_tables { + const struct symbol_table *mark; + const struct symbol_table *devgroup; + const struct symbol_table *ct_label; + const struct symbol_table *realm; +}; + struct output_ctx { unsigned int flags; union { @@ -25,6 +32,7 @@ struct output_ctx { FILE *error_fp; struct cookie error_cookie; }; + struct symbol_tables tbl; }; static inline bool nft_output_reversedns(const struct output_ctx *octx) |