summaryrefslogtreecommitdiffstats
path: root/include/xt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xt.h')
-rw-r--r--include/xt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/xt.h b/include/xt.h
index dfdf9ee0..753511e6 100644
--- a/include/xt.h
+++ b/include/xt.h
@@ -8,6 +8,9 @@ struct rule_pp_ctx;
struct rule;
#ifdef HAVE_LIBXTABLES
+void xt_stmt_xlate(const struct stmt *stmt);
+void xt_stmt_release(const struct stmt *stmt);
+
void netlink_parse_target(struct netlink_parse_ctx *ctx,
const struct location *loc,
const struct nftnl_expr *nle);
@@ -17,6 +20,9 @@ void netlink_parse_match(struct netlink_parse_ctx *ctx,
void stmt_xt_postprocess(struct rule_pp_ctx *rctx, struct stmt *stmt,
struct rule *rule);
#else
+static inline void xt_stmt_xlate(const struct stmt *stmt) {}
+static inline void xt_stmt_release(const struct stmt *stmt) {}
+
#include <erec.h>
static inline void netlink_parse_target(struct netlink_parse_ctx *ctx,
@@ -29,4 +35,5 @@ static inline void stmt_xt_postprocess(struct rule_pp_ctx *rctx,
struct stmt *stmt, struct rule *rule) {}
#endif
+
#endif /* _NFT_XT_H_ */