summaryrefslogtreecommitdiff
path: root/include/net/mptcp.h
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@xiaomi.com>2021-08-24 16:26:15 -0700
committerDavid S. Miller <davem@davemloft.net>2021-08-25 11:02:34 +0100
commitc25aeb4e095355eec3beb6a2b2b30322bd6d0dd4 (patch)
treeb7288450cc5babe7d3d4e663505d42a4eb35c93b /include/net/mptcp.h
parentd7b269083786dca3b1b0141bde6cea834062b691 (diff)
downloadlwn-c25aeb4e095355eec3beb6a2b2b30322bd6d0dd4.tar.gz
lwn-c25aeb4e095355eec3beb6a2b2b30322bd6d0dd4.zip
mptcp: MP_FAIL suboption sending
This patch added the MP_FAIL suboption sending support. Add a new flag named send_mp_fail in struct mptcp_subflow_context. If this flag is set, send out MP_FAIL suboption. Add a new member fail_seq in struct mptcp_out_options to save the data sequence number to put into the MP_FAIL suboption. An MP_FAIL option could be included in a RST or on the subflow-level ACK. Suggested-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Geliang Tang <geliangtang@xiaomi.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/mptcp.h')
-rw-r--r--include/net/mptcp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/mptcp.h b/include/net/mptcp.h
index 3236010afa29..6026bbefbffd 100644
--- a/include/net/mptcp.h
+++ b/include/net/mptcp.h
@@ -74,7 +74,10 @@ struct mptcp_out_options {
struct mptcp_addr_info addr;
u64 ahmac;
};
- struct mptcp_ext ext_copy;
+ struct {
+ struct mptcp_ext ext_copy;
+ u64 fail_seq;
+ };
struct {
u32 nonce;
u32 token;