mptcp: add mptcp subtype mnemonics
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tcpopt: add phony mptcp suboption datatypeinclude/ src/ tests/ +5 more | +86 | 0 replies | |
| 2/2 | src: propagate key datatype for anonymous setssrc/ tests/ tests/ | +40 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)