From: Fernando Fernandez Mancera <fmancera@suse.de>
To: netdev@vger.kernel.org
Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
pablo@netfilter.org, fw@strlen.de, phil@nwl.cc,
matttbe@kernel.org
Subject: Re: [PATCH nft v2] doc: add MPTCP subtypes documentation to man page
Date: Tue, 6 Oct 2026 23:20:13 +0200 [thread overview]
Message-ID: <b8aac52d-c69c-436f-83eb-572df8c40e7c@suse.de> (raw)
In-Reply-To: <20261006204803.11155-1-fmancera@suse.de>
On 10/6/26 10:48 PM, Fernando Fernandez Mancera wrote:
> In addition, document the limitation when there are multiple MPTCP
> options.
>
> Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
> ---
> v2: added valid MPTCP situations suggested by Matthieu
> ---
I have accidentally sent this to netdev mailing list too. Please ignore
it, it only concerns netfilter-devel.
Sorry for the inconvenience.
> doc/payload-expression.txt | 41 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 41 insertions(+)
>
> diff --git a/doc/payload-expression.txt b/doc/payload-expression.txt
> index ceccfdaa..53e92905 100644
> --- a/doc/payload-expression.txt
> +++ b/doc/payload-expression.txt
> @@ -805,6 +805,32 @@ TCP option matching also supports raw expression syntax to access arbitrary opti
> [verse]
> *tcp option* *@*'number'*,*'offset'*,*'length'
>
> +.MPTCP subtypes
> +[options="header"]
> +|============================
> +|Keyword| Description
> +|mp-capable|
> +Multipath capable
> +|mp-join|
> +Join connection
> +|dss|
> +Data sequence signal
> +|add-addr|
> +Add address
> +|remove-addr|
> +Remove address
> +|mp-prio|
> +Change subflow priority
> +|mp-fail|
> +Fallback to single-path TCP
> +|mp-fastclose|
> +Fast close
> +|mp-tcprst|
> +Subflow reset
> +|============================
> +
> +Data types can be queried with 'nft describe tcp option mptcp subtype'.
> +
> .IP Options
> [options="header"]
> |==================
> @@ -833,6 +859,21 @@ filter input tcp option sack-perm exists counter
> filter input tcp option maxseg size lt 536
> --------------------
>
> +.matching MPTCP suboptions
> +--------------------
> +filter input tcp option mptcp subtype mp-join drop
> +--------------------
> +
> +[NOTE]
> +====================
> +Netfilter currently evaluates only the first MPTCP option found in the TCP
> +header. If a packet contains multiple MPTCP options, a rule attempting to match
> +the second option will never match. Having multiple MPTCP options in the same
> +packet is valid, e.g the Linux MPTCP stack inserts 'remove-addr', 'mp-prio' and
> +'mp-fail' after an MPTCP 'dss' option; 'mp-tcprst' can also be inserted after
> +an 'mp-fastclose'.
> +====================
> +
> .matching IPv6 exthdr
> ---------------------
> ip6 filter input frag more-fragments 1 counter
next prev parent reply other threads:[~2026-10-06 21:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 20:48 [PATCH nft v2] doc: add MPTCP subtypes documentation to man page Fernando Fernandez Mancera
2026-10-06 21:20 ` Fernando Fernandez Mancera [this message]
2026-10-07 8:22 ` Matthieu Baerts
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=b8aac52d-c69c-436f-83eb-572df8c40e7c@suse.de \
--to=fmancera@suse.de \
--cc=coreteam@netfilter.org \
--cc=fw@strlen.de \
--cc=matttbe@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=phil@nwl.cc \
/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