path: root/include/xt.h
diff options
authorPablo Neira Ayuso <>2018-01-20 13:38:55 +0100
committerPablo Neira Ayuso <>2018-01-20 13:41:48 +0100
commitb4c7117ef552d0d71bde1db4a047b4c005699951 (patch)
tree38f7bb844b7a253268f2b1085119d9e2a57d915d /include/xt.h
parent557936d4f9e836c7f952ab11312f1915001ed774 (diff)
Revert ("src: Remove xt_stmt_() functions").
Revert commit bce55916b51ec1a4c23322781e3b0c698ecc9561, we need this code in place to properly make translation when iptables-compat loads rules. Reported-by: Duncan Roe <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/xt.h')
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;
+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);
+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 /* _NFT_XT_H_ */