diff options
Diffstat (limited to 'iptables/nft-shared.c')
-rw-r--r-- | iptables/nft-shared.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index ecc54024..76fd8e49 100644 --- a/iptables/nft-shared.c +++ b/iptables/nft-shared.c @@ -294,11 +294,10 @@ static void *nft_get_data(struct nft_xt_ctx *ctx) switch(ctx->family) { case NFPROTO_IPV4: case NFPROTO_IPV6: + case NFPROTO_BRIDGE: return ctx->state.cs; case NFPROTO_ARP: return ctx->state.cs_arp; - case NFPROTO_BRIDGE: - return ctx->state.cs_eb; default: /* Should not happen */ return NULL; @@ -351,10 +350,8 @@ void nft_parse_match(struct nft_xt_ctx *ctx, struct nftnl_expr *e) switch (ctx->family) { case NFPROTO_IPV4: case NFPROTO_IPV6: - matches = &ctx->state.cs->matches; - break; case NFPROTO_BRIDGE: - matches = &ctx->state.cs_eb->matches; + matches = &ctx->state.cs->matches; break; default: fprintf(stderr, "BUG: nft_parse_match() unknown family %d\n", |