From: Florian Westphal <fw@strlen.de>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Florian Westphal <fw@strlen.de>, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nft] datatype, meta: add new ifname_type for iifname/oifname
Date: Tue, 1 Mar 2016 12:00:55 +0100 [thread overview]
Message-ID: <20160301110055.GA22817@breakpoint.cc> (raw)
In-Reply-To: <20160301101114.GA2654@salvia>
Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > Ok, but how do you plan to handle the key length?
>
> Right, in concatenations we can infer this from the lhs, but in set
> definitions there is not way.
Okay. So whats the plan there?
> What I would suggest is to recover a patch that Patrick submitted that
> introduces typeof(X) so we can use this from set definitions. We can
> store in the TLV the original subtype X as a string. Thus, when
> listing back to userspace we can use this information to display back
> the typeof(X).
So you mean you'd use something like
nft add set filter ifnames '{typeof(meta iifname); }' ?
That should indeed work since we can derive the size
from the meta iifname (or whatever other field),
> We have to potentially support every meta and packet selector,
> including crazy ones as 48 bits fields, and last time we discussed
> this, we agreed that adding one type per field size is not the way to
> go.
Ok, yes, I see your point.
> Let me know your opinion on this, thanks!
I think typeof would be good; we could indeed derive the key size with
this without the need for a new type.
next prev parent reply other threads:[~2016-03-01 11:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-26 19:19 [PATCH nft] datatype, meta: add new ifname_type for iifname/oifname Florian Westphal
2016-02-29 13:12 ` Pablo Neira Ayuso
2016-02-29 13:19 ` Florian Westphal
2016-03-01 10:11 ` Pablo Neira Ayuso
2016-03-01 11:00 ` Florian Westphal [this message]
2016-03-01 13:15 ` Pablo Neira Ayuso
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=20160301110055.GA22817@breakpoint.cc \
--to=fw@strlen.de \
--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).