Content-Type: multipart/mixed; boundary="===============2501126468698593524==" MIME-Version: 1.0 From: Peter Krystad To: mptcp at lists.01.org Subject: Re: [MPTCP] [PATCH] mptcp: fall back to tcp when dss checksum are requested Date: Mon, 26 Aug 2019 10:35:24 -0700 Message-ID: In-Reply-To: 20190826124812.17481-1-fw@strlen.de X-Status: X-Keywords: X-UID: 1710 --===============2501126468698593524== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Florian - My thinking here was that code in mptcp_parse_options() just parses the options without having knowledge about configuration. There is existing log= ic for peer requesting checksums in subflow_v4_init_req(). Peter. On Mon, 2019-08-26 at 14:48 +0200, Florian Westphal wrote: > No other choice. Without this, peer that requested DSS checksum will res= et > the connection as soon as DSS options without checksums arrive. > = > squashto: mptcp: Handle MPTCP TCP options > = > Cc: Peter Krystad > Signed-off-by: Florian Westphal > --- > net/mptcp/options.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > = > diff --git a/net/mptcp/options.c b/net/mptcp/options.c > index 9f892478d336..deee4394c4c5 100644 > --- a/net/mptcp/options.c > +++ b/net/mptcp/options.c > @@ -37,6 +37,22 @@ void mptcp_parse_option(const unsigned char *ptr, int = opsize, > (mp_opt->flags & MPTCP_CAP_EXTENSIBILITY)) > break; > = > + /* RFC 6824, Section 3.1: > + * "For the Checksum Required bit (labeled "A"), if either > + * host requires the use of checksums, checksums MUST be used. > + * In other words, the only way for checksums not to be used > + * is if both hosts in their SYNs set A=3D0." > + * > + * Section 3.3.0: > + * "If a checksum is not present when its use has been > + * negotiated, the receiver MUST close the subflow with a RST as it is > + * considered broken." > + * > + * We don't implement DSS checksum - fall back to TCP. > + */ > + if (mp_opt->flags & MPTCP_CAP_CHECKSUM_REQD) > + break; > + > mp_opt->mp_capable =3D 1; > mp_opt->sndr_key =3D get_unaligned_be64(ptr); > ptr +=3D 8; --===============2501126468698593524==--