Message ID | 1623726146-5911-5-git-send-email-wujianguo106@163.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Mat Martineau |
Headers | show |
Series | Fix some mptcp syncookie process bugs | expand |
wujianguo106@163.com <wujianguo106@163.com> wrote: > diff --git a/net/mptcp/options.c b/net/mptcp/options.c > index 1aec01686c1a..01a1bf60b187 100644 > --- a/net/mptcp/options.c > +++ b/net/mptcp/options.c > @@ -926,6 +926,8 @@ static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk, > return true; > > reset: > + TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq; Magic. Please at least add a comment here.
Hi Florian, On 2021/6/15 23:19, Florian Westphal wrote: > wujianguo106@163.com <wujianguo106@163.com> wrote: >> diff --git a/net/mptcp/options.c b/net/mptcp/options.c >> index 1aec01686c1a..01a1bf60b187 100644 >> --- a/net/mptcp/options.c >> +++ b/net/mptcp/options.c >> @@ -926,6 +926,8 @@ static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk, >> return true; >> >> reset: >> + TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq; > > Magic. Please at least add a comment here. > Ok, will add a comment, thanks!
diff --git a/net/mptcp/options.c b/net/mptcp/options.c index 1aec01686c1a..01a1bf60b187 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -926,6 +926,8 @@ static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk, return true; reset: + TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq; + mptcp_subflow_reset(ssk); return false; }