From: Brett Mastbergen <bmastbergen@untangle.com>
To: Florian Westphal <fw@strlen.de>
Cc: pablo@netfilter.org, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nft] ct: Add support for the 'id' key
Date: Fri, 26 Apr 2019 10:06:37 -0400 [thread overview]
Message-ID: <20190426135032.GA1906@pinebook> (raw)
In-Reply-To: <20190423205535.omwrkwc5ceahoz76@breakpoint.cc>
On 23-04-19, Florian Westphal wrote:
> Brett Mastbergen <bmastbergen@untangle.com> wrote:
> > +const struct datatype ct_id_type = {
> > + .type = TYPE_CT_ID,
> > + .name = "ct_id",
> > + .desc = "conntrack id",
> > + .byteorder = BYTEORDER_BIG_ENDIAN,
> > + .size = 4 * BITS_PER_BYTE,
> > + .basetype = &integer_type,
> > +};
>
> Pablo, I know we've discussed this in the past but I think
> the ct id would be a good candidate to add a generic uint32_t
> integer type.
>
> AFAICS the ct_id_type is unneeded per this patch,
> but IIRC to make use of this for set definitions we can't use generic
> integer type as it has no fixed size.
Indeed, the only reason I added the ct_id type was so there would be
a fixed length integer type to use in sets and as a key to maps. If
you'd like me to throw together a patch that creates a generic 32
bit integer type, and then use that for the ct id key, just say the
word.
>
> This is the first data type that doesn't need any specific
> parsing/printing, AFAICS its just needed to get a fixed 32bit size.
next prev parent reply other threads:[~2019-04-26 14:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-23 20:18 [PATCH nft] ct: Add support for the 'id' key Brett Mastbergen
2019-04-23 20:55 ` Florian Westphal
2019-04-26 14:06 ` Brett Mastbergen [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-05-01 17:55 Brett Mastbergen
2020-05-01 18:59 ` 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=20190426135032.GA1906@pinebook \
--to=bmastbergen@untangle.com \
--cc=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 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.