Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109237
b: refs/heads/master
c: 7982d5e
h: refs/heads/master
i:
  109235: 7dffe58
v: v3
  • Loading branch information
Philip Love authored and David S. Miller committed Aug 27, 2008
1 parent b5027e0 commit 5f2bb09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: fe439dd09d3e4da6a44d35df7371b9c6a2661b99
refs/heads/master: 7982d5e1b350acb96aa156916c44c25ef87bb809
6 changes: 4 additions & 2 deletions trunk/net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ static unsigned tcp_syn_options(struct sock *sk, struct sk_buff *skb,
}
if (likely(sysctl_tcp_window_scaling)) {
opts->ws = tp->rx_opt.rcv_wscale;
size += TCPOLEN_WSCALE_ALIGNED;
if(likely(opts->ws))
size += TCPOLEN_WSCALE_ALIGNED;
}
if (likely(sysctl_tcp_sack)) {
opts->options |= OPTION_SACK_ADVERTISE;
Expand Down Expand Up @@ -509,7 +510,8 @@ static unsigned tcp_synack_options(struct sock *sk,

if (likely(ireq->wscale_ok)) {
opts->ws = ireq->rcv_wscale;
size += TCPOLEN_WSCALE_ALIGNED;
if(likely(opts->ws))
size += TCPOLEN_WSCALE_ALIGNED;
}
if (likely(doing_ts)) {
opts->options |= OPTION_TS;
Expand Down

0 comments on commit 5f2bb09

Please sign in to comment.