netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@inai.de>
To: Aft nix <aftnix@gmail.com>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: Target extension with nf_hooks
Date: Sun, 11 Nov 2012 14:36:27 +0100 (CET)	[thread overview]
Message-ID: <alpine.LNX.2.01.1211111434430.6241@nerf07.vanv.qr> (raw)
In-Reply-To: <CAGuaRCtEa2VGPb3-jYvuK9+t++L44xTeOm15xpsFXmzLHoui3g@mail.gmail.com>


On Sunday 2012-11-11 11:56, Aft nix wrote:
>
>static struct xt_target obsf_tg_reg __read_mostly = {
>
>        .name = "OBSF",
>        .family = NFPROTO_UNSPEC,
>        .target = obsf_tg,
>        .checkentry = obsf_tg_check,
>        .targetsize = sizeof(struct xt_OBSF_tginfo),
>        .me = THIS_MODULE,
>};
>
>static struct nf_hook_ops inward_obsf_ops __read_mostly = {
>    .pf = NFPROTO_IPV4,
>    .priority = 1,
>    .hooknum = NF_INET_PRE_ROUTING,
>    .hook = ibss_obsf_inward_begin,
>};
>
>a) Between ibss_obsf_inward_begin() and obsf_tg() who will be called first?

The filter,mangle,etc. tables all have a specific and different priority
assigned (git grep NF_IP_PRI_ include/).

  reply	other threads:[~2012-11-11 13:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-11 10:56 Target extension with nf_hooks Aft nix
2012-11-11 13:36 ` Jan Engelhardt [this message]
2012-11-11 14:47   ` Aft nix
2012-11-11 17:15     ` Jan Engelhardt
2012-12-02 10:58       ` arif
2012-12-04 18:17         ` Jan Engelhardt

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=alpine.LNX.2.01.1211111434430.6241@nerf07.vanv.qr \
    --to=jengelh@inai.de \
    --cc=aftnix@gmail.com \
    --cc=netfilter-devel@vger.kernel.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).