Skip to content

mptcp: add mptcp subtype mnemonics

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tcpopt: add phony mptcp suboption datatypeinclude/datatype.h src/tcpopt.c tests/py/any/tcpopt.t +5 more+86 -60 replies
2/2src: propagate key datatype for anonymous setssrc/expression.c tests/py/any/tcpopt.t tests/py/any/tcpopt.t.payload+40 -62 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2 nft] mptcp: add mptcp subtype mnemonics

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(-)