From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>,
netfilter-devel@vger.kernel.org
Subject: Re: [nft PATCH] evaluate: better error reporting in too long sets names
Date: Wed, 27 Apr 2016 19:37:13 +0200 [thread overview]
Message-ID: <20160427173713.GA12894@salvia> (raw)
In-Reply-To: <alpine.DEB.2.10.1604271929480.24314@blackhole.kfki.hu>
On Wed, Apr 27, 2016 at 07:36:38PM +0200, Jozsef Kadlecsik wrote:
> On Wed, 27 Apr 2016, Pablo Neira Ayuso wrote:
>
> > On Wed, Apr 20, 2016 at 03:43:00PM +0200, Arturo Borrero Gonzalez wrote:
> > > Currently, if we choose a set name larger than allowed, the error message is:
> > > Error: Could not process rule: Numerical result out of range
> > >
> > > Let's inform the user with a better error message.
> > >
> > > We can discuss later if length of set names should be increased, but I think
> > > this better error reporting is necessary right now to avoid headaches to users.
> >
> > /* The max length of strings including NUL: set and type identifiers */
> > #define IPSET_MAXNAMELEN 32
> >
> > I would like that we get the same length as ipset, this should make it
> > easier for people to migrate.
>
> I think it's all right if set names are longer in nftables. That won't
> cause incompatibilites, unless someone wants to move from nftables to
> ipset.
Currently in nftables we have 16 bytes, so we're smaller than ipset.
next prev parent reply other threads:[~2016-04-27 17:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-20 13:43 [nft PATCH] evaluate: better error reporting in too long sets names Arturo Borrero Gonzalez
2016-04-27 17:14 ` Pablo Neira Ayuso
2016-04-27 17:36 ` Jozsef Kadlecsik
2016-04-27 17:37 ` Pablo Neira Ayuso [this message]
2016-04-28 7:42 ` Arturo Borrero Gonzalez
2016-05-04 6:26 ` Arturo Borrero Gonzalez
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=20160427173713.GA12894@salvia \
--to=pablo@netfilter.org \
--cc=arturo.borrero.glez@gmail.com \
--cc=kadlec@blackhole.kfki.hu \
--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).