From 7feece21f72ebf4633048b2dd447e31da30819fb Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 8 May 2018 13:08:35 +0200 Subject: libnftables: Make some functions globally accessible This removes static flag and adds header prototype for the following functions: * must_print_eq_op() from src/expression.c * fib_result_str() from src/fib.c * set_policy2str() and chain_policy2str from src/rule.c In fib.h, include linux/netfilter/nf_tables.h to make sure enum nft_fib_result is known when including this file. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 5f73bebc..a3ed5179 100644 --- a/src/rule.c +++ b/src/rule.c @@ -295,7 +295,7 @@ struct print_fmt_options { const char *stmt_separator; }; -static const char *set_policy2str(uint32_t policy) +const char *set_policy2str(uint32_t policy) { switch (policy) { case NFT_SET_POL_PERFORMANCE: @@ -740,7 +740,7 @@ const char *hooknum2str(unsigned int family, unsigned int hooknum) return "unknown"; } -static const char *chain_policy2str(uint32_t policy) +const char *chain_policy2str(uint32_t policy) { switch (policy) { case NF_DROP: -- cgit v1.2.3