diff options
author | Phil Sutter <phil@nwl.cc> | 2018-05-08 13:08:35 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-11 12:16:54 +0200 |
commit | 7feece21f72ebf4633048b2dd447e31da30819fb (patch) | |
tree | 5863c83d4a02a06e178d3594376072a9471ac188 /include/statement.h | |
parent | f4c87d0a7037188ff69dff29d5154a102230b792 (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 <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/statement.h')
-rw-r--r-- | include/statement.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/statement.h b/include/statement.h index 5987b181..fc80dbd5 100644 --- a/include/statement.h +++ b/include/statement.h @@ -21,6 +21,7 @@ struct objref_stmt { struct expr *expr; }; +const char *objref_type_name(uint32_t type); struct stmt *objref_stmt_alloc(const struct location *loc); struct counter_stmt { @@ -75,6 +76,7 @@ struct log_stmt { uint32_t flags; }; +extern const char *log_level(uint32_t level); extern struct stmt *log_stmt_alloc(const struct location *loc); |