From patchwork Mon Jan 19 13:27:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arturo Borrero X-Patchwork-Id: 430447 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C4EF01401EB for ; Tue, 20 Jan 2015 00:27:50 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751595AbbASN1u (ORCPT ); Mon, 19 Jan 2015 08:27:50 -0500 Received: from smtp3.cica.es ([150.214.5.190]:56999 "EHLO smtp.cica.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751578AbbASN1u (ORCPT ); Mon, 19 Jan 2015 08:27:50 -0500 Received: from localhost (unknown [127.0.0.1]) by smtp.cica.es (Postfix) with ESMTP id 7B05D51F206; Mon, 19 Jan 2015 13:27:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at cica.es Received: from smtp.cica.es ([127.0.0.1]) by localhost (mail.cica.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 96F-gV9+0rlS; Mon, 19 Jan 2015 14:27:43 +0100 (CET) Received: from nfdev.cica.es (nfdev.cica.es [150.214.8.220]) by smtp.cica.es (Postfix) with ESMTP id 7BEF451F0E7; Mon, 19 Jan 2015 14:27:43 +0100 (CET) Subject: [ebtables-compat PATCH 2/7] ebtables-compat: add nft rule compat information to bridge rules From: Arturo Borrero Gonzalez To: netfilter-devel@vger.kernel.org Cc: giuseppelng@gmail.com, pablo@netfilter.org Date: Mon, 19 Jan 2015 14:27:41 +0100 Message-ID: <20150119132741.7422.63774.stgit@nfdev.cica.es> In-Reply-To: <20150119132735.7422.85388.stgit@nfdev.cica.es> References: <20150119132735.7422.85388.stgit@nfdev.cica.es> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org The compat information is required by some ebtables extensions to properly work. Signed-off-by: Arturo Borrero Gonzalez --- iptables/nft-bridge.c | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;