[ebtables-compat PATCH 2/7] ebtables-compat: add nft rule compat information to bridge rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The compat information is required by some ebtables extensions to properly
work.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@xxxxxxxxx>
---
 iptables/nft-bridge.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c
index 9747405..af67a5a 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;

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux