Commit e121e75f authored by Kevin Lahey's avatar Kevin Lahey Committed by Linus Torvalds

[TCP]: When SYN is set, the window is not scaled.

parent 7a0552ba
......@@ -1967,7 +1967,10 @@ static int tcp_ack_update_window(struct sock *sk, struct tcp_opt *tp,
struct sk_buff *skb, u32 ack, u32 ack_seq)
{
int flag = 0;
u32 nwin = ntohs(skb->h.th->window) << tp->snd_wscale;
u32 nwin = ntohs(skb->h.th->window);
if (likely(!skb->h.th->syn))
nwin <<= tp->snd_wscale;
if (tcp_may_update_window(tp, ack, ack_seq, nwin)) {
flag |= FLAG_WIN_UPDATE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment