From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nft] datatype, meta: add new ifname_type for iifname/oifname
Date: Tue, 1 Mar 2016 14:15:22 +0100 [thread overview]
Message-ID: <20160301131522.GA22826@salvia> (raw)
In-Reply-To: <20160301110055.GA22817@breakpoint.cc>
On Tue, Mar 01, 2016 at 12:00:55PM +0100, Florian Westphal wrote:
> 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?
I would review Carlos' patches, recover Patrick patch to add typeof()
and check if we can get all the pieces together to support this.
> > 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.
Yep, we have a plan to address this then.
prev parent reply other threads:[~2016-03-01 13:15 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
2016-03-01 13:15 ` Pablo Neira Ayuso [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=20160301131522.GA22826@salvia \
--to=pablo@netfilter.org \
--cc=fw@strlen.de \
--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).