All of lore.kernel.org
 help / color / mirror / Atom feed
* [MPTCP] [PATCH 2/2] mptcp: Ignore incoming MPTCP options when not MP_CAPABLE
@ 2019-10-22 22:54 Peter Krystad
  0 siblings, 0 replies; only message in thread
From: Peter Krystad @ 2019-10-22 22:54 UTC (permalink / raw)
  To: mptcp 

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

Any options received on a fallback subflow should be ignored.

squashto: Add handling of incoming MP_JOIN requests

Signed-off-by: Peter Krystad <peter.krystad(a)linux.intel.com>
---
 net/mptcp/options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mptcp/options.c b/net/mptcp/options.c
index dcd7273e488c..1b08e1193991 100644
--- a/net/mptcp/options.c
+++ b/net/mptcp/options.c
@@ -591,7 +591,7 @@ void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb,
 	struct mptcp_options_received *mp_opt;
 	struct mptcp_ext *mpext;
 
-	if (!subflow->mp_capable)
+	if (!subflow->mp_capable && !subflow->mp_join)
 		return;
 
 	mp_opt = &opt_rx->mptcp;
-- 
2.17.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-22 22:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-22 22:54 [MPTCP] [PATCH 2/2] mptcp: Ignore incoming MPTCP options when not MP_CAPABLE Peter Krystad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.