From 1cba7a5e5e96dd920271823125b45e182f22ec82 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 4 Jul 2020 02:43:40 +0200 Subject: 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 --- include/datatype.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/datatype.h') 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 */ -- cgit v1.2.3