diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/expression.c | 2 | ||||
-rw-r--r-- | src/fib.c | 2 | ||||
-rw-r--r-- | src/rule.c | 4 | ||||
-rw-r--r-- | src/statement.c | 4 |
4 files changed, 6 insertions, 6 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; } @@ -52,7 +52,7 @@ const struct datatype fib_addr_type = { .sym_tbl = &addrtype_tbl, }; -static const char *fib_result_str(enum nft_fib_result result) +const char *fib_result_str(enum nft_fib_result result) { if (result <= NFT_FIB_RESULT_MAX) return fib_result[result]; @@ -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: diff --git a/src/statement.c b/src/statement.c index a5ef7d7d..6537bbbd 100644 --- a/src/statement.c +++ b/src/statement.c @@ -178,7 +178,7 @@ static const char *objref_type[NFT_OBJECT_MAX + 1] = { [NFT_OBJECT_LIMIT] = "limit", }; -static const char *objref_type_name(uint32_t type) +const char *objref_type_name(uint32_t type) { if (type > NFT_OBJECT_MAX) return "unknown"; @@ -225,7 +225,7 @@ static const char *syslog_level[LOG_DEBUG + 1] = { [LOG_DEBUG] = "debug", }; -static const char *log_level(uint32_t level) +const char *log_level(uint32_t level) { if (level > LOG_DEBUG) return "unknown"; |