path: root/src/expression.c
diff options
authorPhil Sutter <>2018-05-08 13:08:35 +0200
committerPablo Neira Ayuso <>2018-05-11 12:16:54 +0200
commit7feece21f72ebf4633048b2dd447e31da30819fb (patch)
tree5863c83d4a02a06e178d3594376072a9471ac188 /src/expression.c
parentf4c87d0a7037188ff69dff29d5154a102230b792 (diff)
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 <>
Diffstat (limited to 'src/expression.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expression.c b/src/expression.c
index c3b6fb22..3c5ea0ff 100644
--- a/src/expression.c
+++ b/src/expression.c
@@ -558,7 +558,7 @@ static void binop_arg_print(const struct expr *op, const struct expr *arg,
nft_print(octx, ")");
-static bool must_print_eq_op(const struct expr *expr)
+bool must_print_eq_op(const struct expr *expr)
return expr->left->ops->type == EXPR_BINOP;