diff options
author | David S. Miller <davem@davemloft.net> | 2016-08-30 00:54:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-30 00:54:02 -0400 |
commit | 6abdd5f5935fff978f950561f3c5175eb34dad73 (patch) | |
tree | 6f3ed3a4f4af9e74436ec9355ebf8201357f1c40 /net/ipv6/tcp_ipv6.c | |
parent | 0b498a52778368ff501557d68c7b50878ab1701e (diff) | |
parent | e4e98c460ad38c78498622a164fd5ef09a2dc9cb (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
All three conflicts were cases of simple overlapping
changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 5bf460bd299f..04529a3d42cb 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -945,9 +945,15 @@ static void tcp_v6_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb, | |||
945 | /* sk->sk_state == TCP_LISTEN -> for regular TCP_SYN_RECV | 945 | /* sk->sk_state == TCP_LISTEN -> for regular TCP_SYN_RECV |
946 | * sk->sk_state == TCP_SYN_RECV -> for Fast Open. | 946 | * sk->sk_state == TCP_SYN_RECV -> for Fast Open. |
947 | */ | 947 | */ |
948 | /* RFC 7323 2.3 | ||
949 | * The window field (SEG.WND) of every outgoing segment, with the | ||
950 | * exception of <SYN> segments, MUST be right-shifted by | ||
951 | * Rcv.Wind.Shift bits: | ||
952 | */ | ||
948 | tcp_v6_send_ack(sk, skb, (sk->sk_state == TCP_LISTEN) ? | 953 | tcp_v6_send_ack(sk, skb, (sk->sk_state == TCP_LISTEN) ? |
949 | tcp_rsk(req)->snt_isn + 1 : tcp_sk(sk)->snd_nxt, | 954 | tcp_rsk(req)->snt_isn + 1 : tcp_sk(sk)->snd_nxt, |
950 | tcp_rsk(req)->rcv_nxt, req->rsk_rcv_wnd, | 955 | tcp_rsk(req)->rcv_nxt, |
956 | req->rsk_rcv_wnd >> inet_rsk(req)->rcv_wscale, | ||
951 | tcp_time_stamp, req->ts_recent, sk->sk_bound_dev_if, | 957 | tcp_time_stamp, req->ts_recent, sk->sk_bound_dev_if, |
952 | tcp_v6_md5_do_lookup(sk, &ipv6_hdr(skb)->daddr), | 958 | tcp_v6_md5_do_lookup(sk, &ipv6_hdr(skb)->daddr), |
953 | 0, 0); | 959 | 0, 0); |