]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
ebtables-compat: add nft rule compat information to bridge rules
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Mon, 19 Jan 2015 13:27:41 +0000 (14:27 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 28 Jan 2015 16:23:51 +0000 (17:23 +0100)
The compat information is required by some ebtables extensions to properly
work.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft-bridge.c

index 9747405e3117214d82ef11ce2d6d8be50f461b4f..af67a5af51f8198f8a11de63bddb375d119e5d7e 100644 (file)
@@ -184,6 +184,8 @@ static int nft_bridge_add(struct nft_rule *r, void *data)
                add_cmp_u16(r, fw->ethproto, op);
        }
 
+       add_compat(r, fw->ethproto, fw->invflags);
+
        for (matchp = cs->matches; matchp; matchp = matchp->next) {
                if (add_match(r, matchp->match->m) < 0)
                        break;