Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323086
b: refs/heads/master
c: bc26ccd
h: refs/heads/master
v: v3
  • Loading branch information
Andrey Vagin authored and David S. Miller committed Sep 20, 2012
1 parent 5fca272 commit e476726
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ea853fd0b721f14eacff1a5b364fe3e60d2dd82
refs/heads/master: bc26ccd8fc756749de95606d28314efd0ce5aec3
13 changes: 10 additions & 3 deletions trunk/net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2331,10 +2331,17 @@ static int tcp_repair_options_est(struct tcp_sock *tp,
tp->rx_opt.mss_clamp = opt.opt_val;
break;
case TCPOPT_WINDOW:
if (opt.opt_val > 14)
return -EFBIG;
{
u16 snd_wscale = opt.opt_val & 0xFFFF;
u16 rcv_wscale = opt.opt_val >> 16;

if (snd_wscale > 14 || rcv_wscale > 14)
return -EFBIG;

tp->rx_opt.snd_wscale = opt.opt_val;
tp->rx_opt.snd_wscale = snd_wscale;
tp->rx_opt.rcv_wscale = rcv_wscale;
tp->rx_opt.wscale_ok = 1;
}
break;
case TCPOPT_SACK_PERM:
if (opt.opt_val != 0)
Expand Down

0 comments on commit e476726

Please sign in to comment.