netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Zintakis <michael.zintakis@googlemail.com>
To: netfilter-devel@vger.kernel.org
Subject: Re: iptables nfacct match question
Date: Fri, 05 Apr 2013 20:27:58 +0100	[thread overview]
Message-ID: <515F25BE.9070006@googlemail.com> (raw)
In-Reply-To: <515F21AC.3080504@googlemail.com>



Michael Zintakis wrote:
> We would have had the consistency (in other words, getting a consistent result regardless of the order of the various conditions/matches) if nfacct was a target, not a match, but I know that would be difficult (I already examined that possibility) since the x_tables target does not provide a 'destroy' method, so there isn't a way to track the 'refcnt' in the nfacct kernel struct, so inventing this method is as equally as ugly as the hack I did with the nfacct match above, so I thought to ask and see whether there is a better solution.
It looks as though I was wrong - I must have been blind when I looked in the x_tables header file!

There is a destroy method as part of mt_target. So if I 'reform' the nfacct match and make it a target, then I guess that whole 'inconsistency' thing will disappear since I could now use something like:

iptables -A INPUT -m match1 -m match2 -j NFACCT --nfacct <nfacct_obj>

and regardless of the order of match1 and match2, the result will be the same, am I correct or is there something very wrong?

      parent reply	other threads:[~2013-04-05 19:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-23 20:57 iptables nfacct match question Michael Zintakis
2013-02-25 15:48 ` Pablo Neira Ayuso
2013-02-25 20:20   ` Michael Zintakis
2013-02-26 13:55     ` Pablo Neira Ayuso
2013-02-26 19:23       ` Michael Zintakis
2013-02-26 21:47         ` Pablo Neira Ayuso
2013-02-27 20:57           ` Michael Zintakis
2013-03-23 12:12             ` Michael Zintakis
2013-04-04 20:37             ` Michael Zintakis
2013-04-04 21:46               ` Jozsef Kadlecsik
2013-04-05 19:10                 ` Michael Zintakis
2013-04-05 19:24                   ` Jozsef Kadlecsik
2013-04-05 19:34                     ` Michael Zintakis
2013-04-05 21:01                       ` Jozsef Kadlecsik
2013-04-06 16:14                         ` Michael Zintakis
2013-04-05 19:27                   ` Michael Zintakis [this message]

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=515F25BE.9070006@googlemail.com \
    --to=michael.zintakis@googlemail.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).