Signed-off-by: Phil Sutter <phil@xxxxxx> --- include/rule.h | 3 +++ src/evaluate.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/rule.h b/include/rule.h index 8e70c129fcce0..61aa040a2e891 100644 --- a/include/rule.h +++ b/include/rule.h @@ -646,4 +646,7 @@ struct timeout_protocol { extern struct timeout_protocol timeout_protocol[IPPROTO_MAX]; extern int timeout_str2num(uint16_t l4proto, struct timeout_state *ts); +int table_not_found(struct eval_ctx *ctx); +int chain_not_found(struct eval_ctx *ctx); + #endif /* NFTABLES_RULE_H */ diff --git a/src/evaluate.c b/src/evaluate.c index 55fb3b6131e04..09bb1fd37a301 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -166,7 +166,7 @@ static struct table *table_lookup_global(struct eval_ctx *ctx) return table; } -static int table_not_found(struct eval_ctx *ctx) +int table_not_found(struct eval_ctx *ctx) { struct table *table; @@ -181,7 +181,7 @@ static int table_not_found(struct eval_ctx *ctx) family2str(table->handle.family)); } -static int chain_not_found(struct eval_ctx *ctx) +int chain_not_found(struct eval_ctx *ctx) { const struct table *table; struct chain *chain; -- 2.21.0