netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: wenxu <wenxu@ucloud.cn>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH] netfilter: x_tables: add xt_tunnel match
Date: Thu, 10 Jan 2019 12:05:07 +0800	[thread overview]
Message-ID: <5dfb9bb4-5148-9288-dcee-22b7d3997a1a@ucloud.cn> (raw)
In-Reply-To: <20190109164143.d6gqky7dvxfxg7jr@salvia>


On 1/10/2019 12:41 AM, Pablo Neira Ayuso wrote:
> On Fri, Dec 21, 2018 at 06:12:24PM +0800, wenxu@ucloud.cn wrote:
> [...]
>> +static struct xt_match tunnel_mt_reg __read_mostly = {
>> +	.name           = "tunnel",
>> +	.revision       = 0,
>> +	.family         = NFPROTO_UNSPEC,
>> +	.match          = tunnel_mt,
>> +	.matchsize      = sizeof(struct xt_tunnel_mtinfo),
> Does this work away from the prerouting hook?

Yes, I just test all the hooks. It can work for ingress packet match for PREROUTING and INPUT.

egress packet (output go through a lwtunnel) on FORWARD, OUTPUT and POSTROUTING.

  reply	other threads:[~2019-01-10  4:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-21 10:12 [PATCH] netfilter: x_tables: add xt_tunnel match wenxu
2019-01-09  2:48 ` wenxu
2019-01-09 16:41 ` Pablo Neira Ayuso
2019-01-10  4:05   ` wenxu [this message]
2019-01-10  4:46     ` wenxu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5dfb9bb4-5148-9288-dcee-22b7d3997a1a@ucloud.cn \
    --to=wenxu@ucloud.cn \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).