aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/input.c')
-rw-r--r--net/dccp/input.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/net/dccp/input.c b/net/dccp/input.c
index 5eb443f656c1..e3f43d55e3ce 100644
--- a/net/dccp/input.c
+++ b/net/dccp/input.c
@@ -440,20 +440,14 @@ static int dccp_rcv_request_sent_state_process(struct sock *sk,
440 kfree_skb(sk->sk_send_head); 440 kfree_skb(sk->sk_send_head);
441 sk->sk_send_head = NULL; 441 sk->sk_send_head = NULL;
442 442
443 dp->dccps_isr = DCCP_SKB_CB(skb)->dccpd_seq;
444 dccp_update_gsr(sk, dp->dccps_isr);
445 /* 443 /*
446 * SWL and AWL are initially adjusted so that they are not less than 444 * Set ISR, GSR from packet. ISS was set in dccp_v{4,6}_connect
447 * the initial Sequence Numbers received and sent, respectively: 445 * and GSS in dccp_transmit_skb(). Setting AWL/AWH and SWL/SWH
448 * SWL := max(GSR + 1 - floor(W/4), ISR), 446 * is done as part of activating the feature values below, since
449 * AWL := max(GSS - W' + 1, ISS). 447 * these settings depend on the local/remote Sequence Window
450 * These adjustments MUST be applied only at the beginning of the 448 * features, which were undefined or not confirmed until now.
451 * connection.
452 *
453 * AWL was adjusted in dccp_v4_connect -acme
454 */ 449 */
455 dccp_set_seqno(&dp->dccps_swl, 450 dp->dccps_gsr = dp->dccps_isr = DCCP_SKB_CB(skb)->dccpd_seq;
456 max48(dp->dccps_swl, dp->dccps_isr));
457 451
458 dccp_sync_mss(sk, icsk->icsk_pmtu_cookie); 452 dccp_sync_mss(sk, icsk->icsk_pmtu_cookie);
459 453