From: Geliang Tang Date: Thu, 3 Feb 2022 01:03:40 +0000 (-0800) Subject: mptcp: print out reset infos of MP_RST X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9ddd1cac6fe1f8464f54ab0d5af9bc8260caca12;p=linux.git mptcp: print out reset infos of MP_RST 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 Signed-off-by: Mat Martineau Signed-off-by: David S. Miller --- diff --git a/net/mptcp/options.c b/net/mptcp/options.c index 7345f28f3de1c..3e82ac24d548a 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -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: