From patchwork Wed May 29 00:13:42 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: 247066 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 59B312C032D for ; Wed, 29 May 2013 10:13:49 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932473Ab3E2ANs (ORCPT ); Tue, 28 May 2013 20:13:48 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:56197 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932409Ab3E2ANs (ORCPT ); Tue, 28 May 2013 20:13:48 -0400 Received: by mail-wg0-f52.google.com with SMTP id z11so5997212wgg.19 for ; Tue, 28 May 2013 17:13:47 -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=TbIC3Yow61yg3eBdnRdLYZTUeDAI0C4m+4XbOT6kQU4=; b=notLYpZj5tkdpcq0aJ46AiNYVWYOrR3zsCTj0cyCP7ih1GedYRgDFMeU079L7l/8k7 9vL/uIEv/IG1PxrAEemWGwbCapFeAW1lKc1GUcz4zwekm7T6JEfuCKcrN6T4qwOwAAlB c3j/bnhoUIvevWGLtA7I9rbWUmUfbuVJ9LhQnZRPihaZZWghnzZDZ56t9UsFn2e5t1WA tg6s6wgrGbQ5oitT3rWxPbuP80t9oYrniiNIvwndIrWWrIFotU7/q2AMbzSc9suF80T1 wRLp4ao7QNUmnQ/B2zkUv2mfRFMI9RPvNyEDk4iI75qcWFnmDsZZhaMGosvf7FSXOP66 RGng== X-Received: by 10.180.183.206 with SMTP id eo14mr14084016wic.36.1369786426967; Tue, 28 May 2013 17:13:46 -0700 (PDT) Received: from [10.68.68.173] (cpc2-gill1-0-0-cust4.20-1.cable.virginmedia.com. [77.100.109.5]) by mx.google.com with ESMTPSA id q13sm27693745wie.8.2013.05.28.17.13.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 May 2013 17:13:46 -0700 (PDT) Message-ID: <51A54836.4040206@googlemail.com> Date: Wed, 29 May 2013 01:13:42 +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 3/4] iptables: add set match "inner" flag support References: <51A54267.8050402-git-send-email-mr.dash.four@googlemail.com> In-Reply-To: <51A54267.8050402-git-send-email-mr.dash.four@googlemail.com> 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. 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 = {