Add TCP_MAXSEG socket option support
Subsystems (3)
Geliang Tang
reviewerv3 cover Add TCP_MAXSEG socket option support
v3:
- drop "EXPORT_SYMBOL(tcp_sock_set_maxseg)" as Matt suggested.
- use mptcp_getsockopt_first_sf_only instead of mptcp_put_int_option.
- drop selftest
- add a packetdrill test.
v2:
- add a new helper tcp_sock_set_maxseg.
- add maxseg member of struct mptcp_sock.
- add mptcp_setsockopt_all_subflows helper.
- invoke mptcp_setsockopt_all_subflows under the msk socket lock.
- drop mptcp_getsockopt_sol_tcp_maxseg, use mptcp_put_int_option instead.
Geliang Tang (2):
tcp: add tcp_sock_set_maxseg
mptcp: add TCP_MAXSEG sockopt support
include/linux/tcp.h | 1 + net/ipv4/tcp.c | 23 ++++++++++++++--------- net/mptcp/protocol.h | 1 + net/mptcp/sockopt.c | 25 +++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 9 deletions(-)
Signature · 1 line
2.43.0
Geliang Tang
reviewerPATCH v3 1/2 tcp: add tcp_sock_set_maxseg
From: Geliang Tang <[email protected]>
Add a helper tcp_sock_set_maxseg() to directly set the TCP_MAXSEG sockopt from kernel space.
This new helper will be used in the following patch.
--- include/linux/tcp.h | 1 + net/ipv4/tcp.c | 23 ++++++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-)
include/linux/tcp.h +1 -0
@@ -624,6 +624,7 @@ void tcp_sock_set_nodelay(struct sock *sk);void tcp_sock_set_quickack (struct sock *sk,int val);int tcp_sock_set_syncnt (struct sock *sk,int val);int tcp_sock_set_user_timeout (struct sock *sk,int val); +int tcp_sock_set_maxseg (struct sock *sk,int val);static inline bool dst_tcp_usec_ts (const struct dst_entry *dst) {
net/ipv4/tcp.c +14 -9
@@ -3726,6 +3726,19 @@ int tcp_set_window_clamp(struct sock *sk, int val)return 0 ; } +int tcp_sock_set_maxseg (struct sock *sk,int val) +{ +/* Values greater than interface MTU won't take effect. However +* at the point when this call is done we typically don't yet +* know which interface is going to be used +*/ +if (val && (val <TCP_MIN_MSS || val >MAX_TCP_WINDOW )) +return -EINVAL ; + +tcp_sk (sk)->rx_opt.user_mss = val; +return 0 ; +} +/* * Socket option code for TCP. */
@@ -3858,15 +3871,7 @@ int do_tcp_setsockopt(struct sock *sk, int level, int optname,switch (optname) {case TCP_MAXSEG : -/* Values greater than interface MTU won't take effect. However -* at the point when this call is done we typically don't yet -* know which interface is going to be used -*/ -if (val && (val <TCP_MIN_MSS || val >MAX_TCP_WINDOW )) { - err = -EINVAL ; -break ; - } - tp->rx_opt.user_mss = val; +tcp_sock_set_maxseg (sk, val);break ;case TCP_NODELAY :
Signature · 1 line
2.43.0
Geliang Tang
reviewerPATCH v3 2/2 mptcp: add TCP_MAXSEG sockopt support
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
The TCP_MAXSEG socket option is currently not supported by MPTCP, mainly because it has never been requested before. But there are still valid use-cases, e.g. with HAProxy.
This patch adds its support in MPTCP by propagating the value to all subflows.
Similar to mptcp_setsockopt_first_sf_only(), a generic helper mptcp_setsockopt_all_subflows() is added to set sockopt for each subflows of the mptcp socket.
Add a new member for struct mptcp_sock to store the TCP_MAXSEG value, and return this value in getsockopt.
--- net/mptcp/protocol.h | 1 + net/mptcp/sockopt.c | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+)
net/mptcp/protocol.h +1 -0
@@ -327,6 +327,7 @@ struct mptcp_sock {int keepalive_cnt;int keepalive_idle;int keepalive_intvl; +int maxseg;struct work_struct work;struct sk_buff *ooo_last_skb;struct rb_root out_of_order_queue;
net/mptcp/sockopt.c +25 -0
@@ -798,6 +798,22 @@ static int mptcp_setsockopt_first_sf_only(struct mptcp_sock *msk, int level, intreturn ret; } +static int mptcp_setsockopt_all_subflows (struct mptcp_sock *msk,int level,int optname, +sockptr_t optval,unsigned int optlen) +{ +struct mptcp_subflow_context *subflow; + +mptcp_for_each_subflow (msk, subflow) { +struct sock *ssk =mptcp_subflow_tcp_sock (subflow); +int ret =0 ; + + ret =tcp_setsockopt (ssk, level, optname, optval, optlen); +if (ret) +return ret; + } +return 0 ; +} +static int mptcp_setsockopt_sol_tcp (struct mptcp_sock *msk,int optname,sockptr_t optval,unsigned int optlen) {
@@ -859,6 +875,11 @@ static int mptcp_setsockopt_sol_tcp(struct mptcp_sock *msk, int optname, &msk->keepalive_cnt, val);break ; +case TCP_MAXSEG : + msk->maxseg = val; + ret =mptcp_setsockopt_all_subflows (msk,SOL_TCP , optname, + optval, optlen); +break ;default : ret = -ENOPROTOOPT ; }
@@ -1406,6 +1427,9 @@ static int mptcp_getsockopt_sol_tcp(struct mptcp_sock *msk, int optname,return mptcp_put_int_option (msk, optval, optlen, msk->notsent_lowat);case TCP_IS_MPTCP :return mptcp_put_int_option (msk, optval, optlen,1 ); +case TCP_MAXSEG : +return mptcp_getsockopt_first_sf_only (msk,SOL_TCP , optname, + optval, optlen); }return -EOPNOTSUPP ; }
@@ -1552,6 +1576,7 @@ static void sync_socket_options(struct mptcp_sock *msk, struct sock *ssk)tcp_sock_set_keepidle_locked (ssk, msk->keepalive_idle);tcp_sock_set_keepintvl (ssk, msk->keepalive_intvl);tcp_sock_set_keepcnt (ssk, msk->keepalive_cnt); +tcp_sock_set_maxseg (ssk, msk->maxseg);inet_assign_bit (TRANSPARENT , ssk,inet_test_bit (TRANSPARENT , sk));inet_assign_bit (FREEBIND , ssk,inet_test_bit (FREEBIND , sk));
Signature · 1 line
2.43.0
Geliang Tang
reviewerPATCH 1/1 mptcp: validate maxseg sockopt
In reply to Geliang TangThis patch validates the newly added TCP_MAXSEG sockopt.
--- gtests/net/mptcp/sockopts/sockopt_maxseg.pkt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gtests/net/mptcp/sockopts/sockopt_maxseg.pkt
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +20 -0
@@ -0,0 +1,20 @@ +--tolerance_usecs=100000 +`../common/defaults.sh` + +0.0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3 + ++0 bind(3, ..., ...) = 0 ++0 listen(3, 1) = 0 + ++0 setsockopt(3, SOL_TCP, TCP_MAXSEG, [1000], 4) = 0 ++0 getsockopt(3, SOL_TCP, TCP_MAXSEG, [1000], [4]) = 0 + ++0 < S 0:0(0) win 8000 <mss 1000, sackOK, nop, nop, nop, wscale 0, mpcapable v1 flags[flag_h] nokey> ++0 > S. 0:0(0) ack 1 <mss 1000, nop, nop, sackOK, nop, wscale 8, mpcapable v1 flags[flag_h] key[skey]> ++0.01 < . 1:1(0) ack 1 win 8000 <mpcapable v1 flags[flag_h] key[ckey=2, skey]> ++0 accept(3, ..., ...) = 4 + ++0 write(4, ..., 100) = 100 + ++0 > P. 1:101(100) ack 1 <dss dack4=1 dsn8=1 ssn=1 dll=100 nocs, nop, nop> ++0.01 < . 1:1(0) ack 101 win 256 <dss dack4=101 nocs>
Signature · 1 line
2.43.0
Re: [PATCH mptcp-next] mptcp: validate maxseg sockopt
Hi Geliang,
Thank you for your modifications, that's great!
Our CI did some validations and here is its report:
- KVM Validation: normal: Success! ✅
- KVM Validation: debug: Success! ✅
- KVM Validation: btf-normal (only bpftest_all): Success! ✅
- KVM Validation: btf-debug (only bpftest_all): Success! ✅
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/14747840104
Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/34632815fba5
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=958366
If there are some issues, you can reproduce them using the same environment as the one used by the CI thanks to a docker image, e.g.:
$ cd [kernel source code]
$ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
--pull always mptcp/mptcp-upstream-virtme-docker:latest \
auto-normalFor more details:
https://github.com/multipath-tcp/mptcp-upstream-virtme-docker
Please note that despite all the efforts that have been already done to have a stable tests suite when executed on a public CI like here, it is possible some reported issues are not due to your modifications. Still, do not hesitate to help us improve that ;-)
Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)
Re: [PATCH mptcp-next] mptcp: validate maxseg sockopt
In reply to Geliang TangHi Geliang,
Thank you for your modifications, that's great!
Our CI did some validations and here is its report:
- KVM Validation: normal: Success! ✅
- KVM Validation: debug: Success! ✅
- KVM Validation: btf-normal (only bpftest_all): Success! ✅
- KVM Validation: btf-debug (only bpftest_all): Success! ✅
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/14747844787
Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/c9ed2af6416c
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=958366
If there are some issues, you can reproduce them using the same environment as the one used by the CI thanks to a docker image, e.g.:
$ cd [kernel source code]
$ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
--pull always mptcp/mptcp-upstream-virtme-docker:latest \
auto-normalFor more details:
https://github.com/multipath-tcp/mptcp-upstream-virtme-docker
Please note that despite all the efforts that have been already done to have a stable tests suite when executed on a public CI like here, it is possible some reported issues are not due to your modifications. Still, do not hesitate to help us improve that ;-)
Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)
Re: [PATCH mptcp-next v3 2/2] mptcp: add TCP_MAXSEG sockopt support
In reply to Geliang TangHi Geliang,
Quoted 8 lines · Geliang Tang
From: Geliang Tang <[email protected]>
The
TCP_MAXSEGsocket option is currently not supported by MPTCP, mainly because it has never been requested before. But there are still valid use-cases, e.g. with HAProxy.This patch adds its support in MPTCP by propagating the value to all subflows.
Might be good to add:
The get part looks at the value on the first subflow, to be as closed as possible to TCP. Only one value can be returned for the cached MSS, so this can come only from one subflow.
The rest looks good to me:
I can do the modification when applying the patch.
Note that I will not send them upstream before the addition of the packetdrill test in our other repo.
Cheers,
Matt
Signature · 1 line
Sponsored by the NGI0 Core fund.
Matthieu Baerts
maintainerRe: [PATCH mptcp-next v3 2/2] mptcp: add TCP_MAXSEG sockopt support
In reply to Geliang TangQuoted 40 lines · Geliang Tang
From: Geliang Tang <[email protected]>
The
TCP_MAXSEGsocket option is currently not supported by MPTCP, mainly because it has never been requested before. But there are still valid use-cases, e.g. with HAProxy.This patch adds its support in MPTCP by propagating the value to all subflows.
Similar to
mptcp_setsockopt_first_sf_only(), a generic helpermptcp_setsockopt_all_subflows()is added to set sockopt for each subflows of the mptcp socket.Add a new member for struct
mptcp_sockto store theTCP_MAXSEGvalue, and return this value in getsockopt.Signed-off-by Geliang Tang <[email protected]>--- net/mptcp/protocol.h | 1 + net/mptcp/sockopt.c | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+)net/mptcp/protocol.h +1
-0@@ -327,6 +327,7 @@ struct mptcp_sock {int keepalive_cnt;int keepalive_idle;int keepalive_intvl; +int maxseg;struct work_struct work;struct sk_buff *ooo_last_skb;struct rb_root out_of_order_queue;net/mptcp/sockopt.c +0
-0
net/mptcp/sockopt.c static int mptcp_setsockopt_first_sf_only(struct mptcp_sock *msk, int level, int · line 801
Quoted 4 lines
net/mptcp/sockopt.c +1
-0@@ -798,6 +798,22 @@ static int mptcp_setsockopt_first_sf_only(struct mptcp_sock *msk, int level, intreturn ret; } +static int mptcp_setsockopt_all_subflows(struct mptcp_sock *msk, int level, int optname,
Checkpatch was complaining about this line because we were over 80 chars. I just did a modification to avoid that, and while at it, I also use 'mptcp_setsockopt_all_sf', similar to 'first_sf_only' and what was suggested there:
Cheers,
Matt
Signature · 1 line
Sponsored by the NGI0 Core fund.
Matthieu Baerts
maintainerRe: [PATCH mptcp-next] mptcp: validate maxseg sockopt
In reply to Geliang TangHi Geliang,
Quoted 1 line · Geliang Tang
This patch validates the newly added
TCP_MAXSEGsockopt.
If you don't mind and have access, do you mind creating a PR on GitHub instead please?
https://github.com/multipath-tcp/packetdrill
When you send them here, the CI might think it is a kernel patch and try to apply it (which can work with new files).
Quoted 12 lines
Signed-off-by Geliang Tang <[email protected]>--- gtests/net/mptcp/sockopts/sockopt_maxseg.pkt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gtests/net/mptcp/sockopts/sockopt_maxseg.pktgtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +0
-0
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt line 8
Quoted 8 lines
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +8
-0@@ -0,0 +1,20 @@ +--tolerance_usecs=100000 +`../common/defaults.sh` + +0.0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3 + ++0 bind(3, ..., ...) = 0 ++0 listen(3, 1) = 0 +
Here, similar to other sockopt tests, can you check the default value please? It should be the same as the one for "plain" TCP, 536 I suppose (min mss).
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt line 10
Quoted 2 lines
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +2
-0++0 setsockopt(3, SOL_TCP, TCP_MAXSEG, [1000], 4) = 0 ++0 getsockopt(3, SOL_TCP, TCP_MAXSEG, [1000], [4]) = 0
Can you move this block before the bind()/listen()? It seems to make more sense to set that before the listen(), no?
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt line 12
Quoted 1 line
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +1
-0++0 < S 0:0(0) win 8000 <mss 1000, sackOK, nop, nop, nop, wscale 0, mpcapable v1 flags[flag_h] nokey>
Just to avoid confusions, in the inject packet here, please set something else, e.g. 1460.
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt line 15
Quoted 3 lines
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +3
-0++0 > S. 0:0(0) ack 1 <mss 1000, nop, nop, sackOK, nop, wscale 8, mpcapable v1 flags[flag_h] key[skey]> ++0.01 < . 1:1(0) ack 1 win 8000 <mpcapable v1 flags[flag_h] key[ckey=2, skey]> ++0 accept(3, ..., ...) = 4
Can you do a getsockopt(4, ..., TCP_MAXSEG) here to check the value? It should be similar to what you would get with "plain" TCP (is it 988? or -20B reserved for MPTCP options?).
It might be better to introduce a new test doing the same thing with "plain" TCP to compare if you don't mind.
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt line 17
Quoted 1 line
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +1
-0++0 write(4, ..., 100) = 100
Here, please write more than the MSS you set, e.g. 1250B to see how the stack will split that in two packets
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt line 20
Quoted 3 lines
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +3
-0+ ++0 > P. 1:101(100) ack 1 <dss dack4=1 dsn8=1 ssn=1 dll=100 nocs, nop, nop> ++0.01 < . 1:1(0) ack 101 win 256 <dss dack4=101 nocs>
Here, can you change TCP_MAXSEG on the accepted socket (fd = 4)?
e.g. set it to 800, then do a getsockopt(), then write(4, ..., 1250) and see if you have 2 packets of the expected size.
Then, if you don't mind, please also create a new subflow by injecting an MP_JOIN with a MSS of 1460, and check that the SYN+ACK+MP_JOIN generated by the kernel has a MSS of 1000 as expected. For an example, check mptcp/mp_join/mp_join_server.pkt.
Cheers,
Matt
Signature · 1 line
Sponsored by the NGI0 Core fund.
Geliang Tang
reviewerRe: [PATCH mptcp-next v3 2/2] mptcp: add TCP_MAXSEG sockopt support
In reply to Matthieu BaertsHi Matt,
Quoted 23 lines · Matthieu Baerts
Hi Geliang,
Quoted 11 lines · Geliang Tang
From: Geliang Tang <[email protected]>
The
TCP_MAXSEGsocket option is currently not supported by MPTCP, mainly
because it has never been requested before. But there are still valid
use-cases, e.g. with HAProxy.This patch adds its support in MPTCP by propagating the value to all
subflows.Might be good to add:
The get part looks at the value on the first subflow, to be as closed
as possible to TCP. Only one value can be returned for the cached MSS,
so this can come only from one subflow.
Quoted 8 lines
The rest looks good to me:
Reviewed-by Matthieu Baerts (NGI0) <[email protected]>I can do the modification when applying the patch.
Note that I will not send them upstream before the addition of the packetdrill test in our other repo.
Thanks for applying these patches for me.
They can be WIP on the export branch until I add the packetdrill test, which I have already started working on.
Thanks,
-Geliang
Quoted 3 lines
Cheers,
Matt
Geliang Tang
reviewerRe: [PATCH mptcp-next] mptcp: validate maxseg sockopt
In reply to Matthieu BaertsHi Matt,
Thanks for the review.
Quoted 8 lines · Matthieu Baerts
Hi Geliang,
Quoted 1 line · Geliang Tang
This patch validates the newly added
TCP_MAXSEGsockopt.If you don't mind and have access, do you mind creating a PR on GitHub
instead please?
Here's the PR:
https://github.com/multipath-tcp/packetdrill/pull/161
Quoted 73 lines
https://github.com/multipath-tcp/packetdrill
When you send them here, the CI might think it is a kernel patch and try
to apply it (which can work with new files).Quoted 14 lines
Signed-off-by Geliang Tang <[email protected]>---
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt | 20
++++++++++++++++++++1 file changed, 20 insertions(+)create mode 100644 gtests/net/mptcp/sockopts/sockopt_maxseg.pkt
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +0
-0gtests/net/mptcp/sockopts/sockopt_maxseg.pkt line 8
Quoted 8 lines
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +8
-0@@ -0,0 +1,20 @@ +--tolerance_usecs=100000 +`../common/defaults.sh` + +0.0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3 + ++0 bind(3, ..., ...) = 0 ++0 listen(3, 1) = 0 +Here, similar to other sockopt tests, can you check the default value please? It should be the same as the one for "plain" TCP, 536 I suppose
(min mss).gtests/net/mptcp/sockopts/sockopt_maxseg.pkt line 10
Quoted 2 lines
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +2
-0++0 setsockopt(3, SOL_TCP, TCP_MAXSEG, [1000], 4) = 0 ++0 getsockopt(3, SOL_TCP, TCP_MAXSEG, [1000], [4]) = 0Can you move this block before the bind()/listen()? It seems to make more sense to set that before the
listen(), no?Quoted 2 lines
gtests/net/mptcp/sockopts/sockopt_maxseg.pkt new file +1
-0++0 < S 0:0(0) win 8000 <mss 1000, sackOK, nop,nop, nop, wscale 0, mpcapable v1 flags[flag_h] nokey>
Just to avoid confusions, in the inject packet here, please set something else, e.g. 1460.
Quoted 6 lines
++0 > S. 0:0(0) ack 1 <mss 1000, nop, nop, sackOK, nop, wscale 8, mpcapable v1 flags[flag_h] key[skey]> ++0.01 < . 1:1(0) ack 1 win
8000 <mpcapable v1 flags[flag_h] key[ckey=2, skey]>
++0accept(3, ..., ...)= 4Can you do a
getsockopt(4, ..., TCP_MAXSEG)here to check the value? It
should be similar to what you would get with "plain" TCP (is it 988? or
-20B reserved for MPTCP options?).It might be better to introduce a new test doing the same thing with "plain" TCP to compare if you don't mind.
Quoted 1 line
++0
write(4, ..., 100)= 100Here, please write more than the MSS you set, e.g. 1250B to see how the
stack will split that in two packetsQuoted 4 lines
+
++0 > P. 1:101(100) ack 1 <dss dack4=1 dsn8=1 ssn=1 dll=100 nocs, nop, nop>
++0.01 < . 1:1(0) ack 101 win 256 <dss dack4=101 nocs>
Quoted 6 lines
Here, can you change
TCP_MAXSEGon the accepted socket (fd = 4)?e.g. set it to 800, then do a
getsockopt(), thenwrite(4, ..., 1250)and
see if you have 2 packets of the expected size.
In this PR, I almost addressed all your comments above ...
Quoted 6 lines
Then, if you don't mind, please also create a new subflow by injecting
anMP_JOINwith a MSS of 1460, and check that the SYN+ACK+MP_JOIN generated by the kernel has a MSS of 1000 as expected. For an example,
check mptcp/mp_join/mp_join_server.pkt.
But I still have some problems when creating a new subflow, which will be added later.
Thanks,
-Geliang
Quoted 3 lines
Cheers,
Matt
Matthieu Baerts
maintainerRe: [PATCH mptcp-next] mptcp: validate maxseg sockopt
Hi Geliang,
Quoted 10 lines · Geliang Tang
Hi Matt,
Thanks for the review.
Quoted 5 lines · Matthieu Baerts
Hi Geliang,
Quoted 1 line · Geliang Tang
This patch validates the newly added
TCP_MAXSEGsockopt.
Quoted 7 lines
Quoted 3 lines
If you don't mind and have access, do you mind creating a PR on GitHub
instead please?Here's the PR:
Thanks, I just did a review:
https://github.com/multipath-tcp/packetdrill/pull/161/files
(...)
Quoted 11 lines
In this PR, I almost addressed all your comments above ...
Quoted 6 lines
Then, if you don't mind, please also create a new subflow by injecting
anMP_JOINwith a MSS of 1460, and check that the SYN+ACK+MP_JOIN generated by the kernel has a MSS of 1000 as expected. For an example,
check mptcp/mp_join/mp_join_server.pkt.But I still have some problems when creating a new subflow, which will be added later.
Do not hesitate to share this WIP code and the error you have on the PR. I also added a few pointers there.
Cheers,
Matt
Signature · 1 line
Sponsored by the NGI0 Core fund.