]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mptcp: print out reset infos of MP_RST
authorGeliang Tang <geliang.tang@suse.com>
Thu, 3 Feb 2022 01:03:40 +0000 (17:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Feb 2022 11:44:08 +0000 (11:44 +0000)
This patch printed out the reset infos, reset_transient and reset_reason,
of MP_RST in mptcp_parse_option() to show that MP_RST is received.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c

index 7345f28f3de1c16d7e2f14efd3fd4e4d10924e8c..3e82ac24d548aa37292a33b30cf6962868fd97ee 100644 (file)
@@ -336,6 +336,8 @@ static void mptcp_parse_option(const struct sk_buff *skb,
                flags = *ptr++;
                mp_opt->reset_transient = flags & MPTCP_RST_TRANSIENT;
                mp_opt->reset_reason = *ptr;
+               pr_debug("MP_RST: transient=%u reason=%u",
+                        mp_opt->reset_transient, mp_opt->reset_reason);
                break;
 
        case MPTCPOPT_MP_FAIL: