From patchwork Sat Jun 29 21:33:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mr Dash Four X-Patchwork-Id: 255793 X-Patchwork-Delegate: kadlec@blackhole.kfki.hu 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 944772C02B0 for ; Sun, 30 Jun 2013 07:33:13 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751128Ab3F2VdM (ORCPT ); Sat, 29 Jun 2013 17:33:12 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:64623 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750901Ab3F2VdM (ORCPT ); Sat, 29 Jun 2013 17:33:12 -0400 Received: by mail-wi0-f170.google.com with SMTP id ey16so2911288wid.3 for ; Sat, 29 Jun 2013 14:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=5RnEKb569SFt6kUUgQ934LhzAbiiQWTi9SdyukKnu1c=; b=vxP83nLSYRLruviXWKoMHEfU3+dj74A7b6cAUtZTSEOjvVLKM0fC8J+e2iLsbQe9XZ g6glSg830ewv73TeLTcRMFzx97TIQ3zYvD1NSAwM35TyJahk22rMLl0667S1NzTr5LIn BKBiANO2jbdUeKUQM06jmDZIo5PJsrebiR02XaO5cWtPatvwL/UaoTnhJAltqAQS1gTQ 9qxGJcbNLadln4APMkPFOCQV3OhHCRzQnIxfH8eytIvJaRzRfDCUxlIpQxzgQlzMIf0/ QOwGhk0WNKedcK66PJ0zT8oFdlgyoJtY/EvQwAhnuZ1wvKF6BcgEMtYOmLKq5nZi6Mbt 64Fg== X-Received: by 10.194.21.138 with SMTP id v10mr15485890wje.16.1372541589763; Sat, 29 Jun 2013 14:33:09 -0700 (PDT) Received: from [10.68.68.173] (cpc2-gill1-0-0-cust32.20-1.cable.virginmedia.com. [77.100.109.33]) by mx.google.com with ESMTPSA id fb2sm6432568wic.4.2013.06.29.14.33.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 29 Jun 2013 14:33:09 -0700 (PDT) Message-ID: <51CF528D.4000907@googlemail.com> Date: Sat, 29 Jun 2013 22:33:01 +0100 From: Dash Four User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 MIME-Version: 1.0 To: Jozsef Kadlecsik CC: Pablo Neira Ayuso , Netfilter Core Team Subject: [PATCH v3 4/5] iptables: add set match "inner" flag support References: In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org This patch adds "inner" flag support for the set match. Revision history: v1 * initial revision Signed-off-by: Dash Four --- kernel/net/netfilter/xt_set.c | 21 +++++++++++++++++++++ 1 file changed, 21 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/kernel/net/netfilter/xt_set.c b/kernel/net/netfilter/xt_set.c index 00b9c58..430bcff 100644 --- a/kernel/net/netfilter/xt_set.c +++ b/kernel/net/netfilter/xt_set.c @@ -464,6 +464,27 @@ static struct xt_match set_matches[] __read_mostly = { .destroy = set_match_v3_destroy, .me = THIS_MODULE }, + /* --inner flag support */ + { + .name = "set", + .family = NFPROTO_IPV4, + .revision = 4, + .match = set_match_v3, + .matchsize = sizeof(struct xt_set_info_match_v3), + .checkentry = set_match_v3_checkentry, + .destroy = set_match_v3_destroy, + .me = THIS_MODULE + }, + { + .name = "set", + .family = NFPROTO_IPV6, + .revision = 4, + .match = set_match_v3, + .matchsize = sizeof(struct xt_set_info_match_v3), + .checkentry = set_match_v3_checkentry, + .destroy = set_match_v3_destroy, + .me = THIS_MODULE + }, }; static struct xt_target set_targets[] __read_mostly = {