All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Patrick McHardy <kaber@trash.net>
Cc: Kristian Evensen <kristian.evensen@gmail.com>,
	Netfilter Development Mailing list
	<netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH libnftables] Add support for ct set
Date: Fri, 10 Jan 2014 15:32:52 +0100	[thread overview]
Message-ID: <20140110143252.GA3879@localhost> (raw)
In-Reply-To: <20140110135800.GA8854@macbook.localnet>

On Fri, Jan 10, 2014 at 01:58:01PM +0000, Patrick McHardy wrote:
> On Fri, Jan 10, 2014 at 02:54:35PM +0100, Pablo Neira Ayuso wrote:
> > On Fri, Jan 10, 2014 at 01:43:43PM +0000, Patrick McHardy wrote:
> > > On Fri, Jan 10, 2014 at 02:33:06PM +0100, Kristian Evensen wrote:
> > > > Hi,
> > > > 
> > > > On Fri, Jan 10, 2014 at 2:27 PM, Patrick McHardy <kaber@trash.net> wrote:
> > > > > No, I'm refering to the (ab)use of the expression. Anything not returning
> > > > > data is not an expression but a statement.
> > > > 
> > > > Ok, then I follow :) I followed the naming in meta, but I agree. What
> > > > would be a good naming convetion? I thought of something like
> > > > nft_expr_stmt_*. It is a bit clumsy, but it is at least clear that the
> > > > struct can be used to represent both an expression and a statement.
> > > 
> > > nft_ct_stmt? This is what we use in nftables f.i. in case of meta.
> > 
> > Perhaps nft_ct_instr? So we can identify this as the nftables
> > instruction-set.
> 
> Well, expressions also belong to the instruction set. A statement is
> is one (more specific) case of an instruction, as are expressions.
> Why introduce new terminology that isn't used anywhere else so far
> if statement is the exact description of what this is and is already
> used by nftables.

So are you proposing to add a new object for statements in
libnftables? That will require a new infrastructure which would be
very similar to what we have in the current expressions.

To that extend, that would also require a new infrastructure in the
kernel so we also have statements there. I think one of the good
things of the nf_tables kernel side is that we didn't make any
distinction between matches/targets (or call it
expressions/statements).

  reply	other threads:[~2014-01-10 14:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-10 13:10 [PATCH libnftables] Add support for ct set Kristian Evensen
2014-01-10 13:14 ` Patrick McHardy
2014-01-10 13:19   ` Kristian Evensen
2014-01-10 13:27     ` Patrick McHardy
2014-01-10 13:33       ` Kristian Evensen
2014-01-10 13:43         ` Patrick McHardy
2014-01-10 13:52           ` Patrick McHardy
2014-01-10 14:03             ` Kristian Evensen
2014-01-10 13:54           ` Pablo Neira Ayuso
2014-01-10 13:58             ` Patrick McHardy
2014-01-10 14:32               ` Pablo Neira Ayuso [this message]
2014-01-10 18:06                 ` Patrick McHardy
2014-01-10 19:10                   ` Pablo Neira Ayuso
2014-01-10 19:20                     ` Patrick McHardy
  -- strict thread matches above, loose matches on Subject: below --
2014-01-07 15:15 Kristian Evensen
2014-01-07 17:13 ` Arturo Borrero Gonzalez
2014-01-07 17:28   ` Kristian Evensen

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=20140110143252.GA3879@localhost \
    --to=pablo@netfilter.org \
    --cc=kaber@trash.net \
    --cc=kristian.evensen@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.