From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Subject: [PATCH 0/2 nft] mptcp: add mptcp subtype mnemonics
Date: Thu, 9 Dec 2021 16:11:29 +0100 [thread overview]
Message-ID: <20211209151131.22618-1-fw@strlen.de> (raw)
This allows use of mnemonics, e.g.
tcp option mptcp subtype mp-capable
The new datatype is phony: on kernel-side its represented as
TYPE_INTEGER.
It can only be used a set key via the 'typeof' expression.
This avoids bloating the (finite) list of data types just to
handle the extra symbol table.
include/datatype.h | 5 +++-
src/expression.c | 34 ++++++++++++++++++++++
src/tcpopt.c | 30 ++++++++++++++++++-
tests/py/any/tcpopt.t | 6 ++--
tests/py/any/tcpopt.t.json | 2 +-
tests/py/any/tcpopt.t.json.output | 31 ++++++++++++++++++++
tests/py/any/tcpopt.t.payload | 12 ++++----
tests/shell/testcases/sets/dumps/typeof_sets_0.nft | 9 ++++++
tests/shell/testcases/sets/typeof_sets_0 | 9 ++++++
9 files changed, 126 insertions(+), 12 deletions(-)
next reply other threads:[~2021-12-09 15:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 15:11 Florian Westphal [this message]
2021-12-09 15:11 ` [PATCH nft 1/2] tcpopt: add phony mptcp suboption datatype Florian Westphal
2021-12-09 15:11 ` [PATCH nft 2/2] src: propagate key datatype for anonymous sets Florian Westphal
2021-12-15 23:22 ` Pablo Neira Ayuso
2021-12-17 11:22 ` Florian Westphal
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=20211209151131.22618-1-fw@strlen.de \
--to=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