summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-07-04 02:43:40 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-07-15 21:56:18 +0200
commit1cba7a5e5e96dd920271823125b45e182f22ec82 (patch)
treefca8a5b98ef21a5552b8b84e73139d038a7f4519 /include
parente76bb379401816bbea773e73b524cd747324760a (diff)
datatype: convert chain name from gmp value to string
Add expr_chain_export() helper function to convert the chain name that is stored in a gmp value variable to string. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/datatype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/datatype.h b/include/datatype.h
index 04b4892b..1061a389 100644
--- a/include/datatype.h
+++ b/include/datatype.h
@@ -305,4 +305,6 @@ extern struct error_record *rate_parse(const struct location *loc,
extern struct error_record *data_unit_parse(const struct location *loc,
const char *str, uint64_t *rate);
+extern void expr_chain_export(const struct expr *e, char *chain);
+
#endif /* NFTABLES_DATATYPE_H */