From: Arturo Borrero Date: Mon, 19 Jan 2015 13:27:41 +0000 (+0100) Subject: ebtables-compat: add nft rule compat information to bridge rules X-Git-Tag: v1.6.0~53^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4143a08819a076507abaee0ee18e291b65e5997c;p=thirdparty%2Fiptables.git ebtables-compat: add nft rule compat information to bridge rules The compat information is required by some ebtables extensions to properly work. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c index 9747405e..af67a5af 100644 --- a/iptables/nft-bridge.c +++ b/iptables/nft-bridge.c @@ -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;