|
@@ -3416,7 +3416,7 @@ static int tcp_ack_update_window(struct sock *sk, struct sk_buff *skb, u32 ack,
|
|
|
|
|
|
if (tcp_may_update_window(tp, ack, ack_seq, nwin)) {
|
|
|
flag |= FLAG_WIN_UPDATE;
|
|
|
- tcp_update_wl(tp, ack, ack_seq);
|
|
|
+ tcp_update_wl(tp, ack_seq);
|
|
|
|
|
|
if (tp->snd_wnd != nwin) {
|
|
|
tp->snd_wnd = nwin;
|
|
@@ -3621,7 +3621,7 @@ static int tcp_ack(struct sock *sk, struct sk_buff *skb, int flag)
|
|
|
* No more checks are required.
|
|
|
* Note, we use the fact that SND.UNA>=SND.WL2.
|
|
|
*/
|
|
|
- tcp_update_wl(tp, ack, ack_seq);
|
|
|
+ tcp_update_wl(tp, ack_seq);
|
|
|
tp->snd_una = ack;
|
|
|
flag |= FLAG_WIN_UPDATE;
|
|
|
|
|
@@ -5418,7 +5418,7 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,
|
|
|
* never scaled.
|
|
|
*/
|
|
|
tp->snd_wnd = ntohs(th->window);
|
|
|
- tcp_init_wl(tp, TCP_SKB_CB(skb)->ack_seq, TCP_SKB_CB(skb)->seq);
|
|
|
+ tcp_init_wl(tp, TCP_SKB_CB(skb)->seq);
|
|
|
|
|
|
if (!tp->rx_opt.wscale_ok) {
|
|
|
tp->rx_opt.snd_wscale = tp->rx_opt.rcv_wscale = 0;
|
|
@@ -5679,8 +5679,7 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
|
|
|
tp->snd_una = TCP_SKB_CB(skb)->ack_seq;
|
|
|
tp->snd_wnd = ntohs(th->window) <<
|
|
|
tp->rx_opt.snd_wscale;
|
|
|
- tcp_init_wl(tp, TCP_SKB_CB(skb)->ack_seq,
|
|
|
- TCP_SKB_CB(skb)->seq);
|
|
|
+ tcp_init_wl(tp, TCP_SKB_CB(skb)->seq);
|
|
|
|
|
|
/* tcp_ack considers this ACK as duplicate
|
|
|
* and does not calculate rtt.
|