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 18:15:09 +0100 (CET)	[thread overview]
Message-ID: <alpine.LNX.2.01.1211111802590.6241@nerf07.vanv.qr> (raw)
In-Reply-To: <CAGuaRCsgOhwaUf8Pn+gu=axd7O1M4tYPoBje_gMT+LmQzMeNOw@mail.gmail.com>


On Sunday 2012-11-11 15:47, Aft nix wrote:
>
>Thanks for the reply. Now mangle tables has this:
>
>include/uapi/linux/netfilter_ipv4.h:    NF_IP_PRI_MANGLE = -150,
>
>What i get from this list that which table will get priority.
>
>But i'm trying to know which function will be called first?

The one with a lower numerical value.
What is to happen when two hooks have the same priority value
is unspecified.

>But i'm still confused about which function (one registered with
>struct xt_target , another registered with struct nf_hook_ops) will
>get priority?

Those are two very different things.

>How does a table associated with different chains?


  reply	other threads:[~2012-11-11 17:15 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
2012-11-11 14:47   ` Aft nix
2012-11-11 17:15     ` Jan Engelhardt [this message]
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.1211111802590.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).