summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-10-09 20:11:16 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-11-24 11:35:34 +0100
commit902e92ceedba96d3241fa8ff701c061cd53a197d (patch)
tree9c45d7fcb97a3f507c727b31d77e7311cab1d74d /iptables/nft-shared.c
parentda871de2a6efb576b6378a66222c0871f4282e96 (diff)
ebtables-compat: use ebtables_command_state in bootstrap code
And introduce fake ebt_entry. This gets the code in sync in other existing compat tools. This will likely allow to consolidate common infrastructure. This code is still quite experimental. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.c')
-rw-r--r--iptables/nft-shared.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index 9ca2e35c..71c44763 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -280,7 +280,7 @@ static void *nft_get_data(struct nft_xt_ctx *ctx)
case NFPROTO_ARP:
return ctx->state.cs_arp;
case NFPROTO_BRIDGE:
- return ctx->state.ebfw;
+ return ctx->state.cs_eb;
default:
/* Should not happen */
return NULL;
@@ -320,7 +320,7 @@ void nft_parse_target(struct nft_xt_ctx *ctx, struct nft_rule_expr *e)
ops->parse_target(target, data);
}
-static void nft_parse_match(struct nft_xt_ctx *ctx, struct nft_rule_expr *e)
+void nft_parse_match(struct nft_xt_ctx *ctx, struct nft_rule_expr *e)
{
uint32_t mt_len;
const char *mt_name = nft_rule_expr_get_str(e, NFT_EXPR_MT_NAME);