All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH - test-tree] DCCP: Increment sequence number on retransmitted
@ 2008-06-04  7:37 Wei Yongjun
  2008-06-04  8:09 ` [PATCH - test-tree] DCCP: Increment sequence number on Gerrit Renker
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: Wei Yongjun @ 2008-06-04  7:37 UTC (permalink / raw)
  To: dccp

When retransmit the first REQUEST, the sequence number does not be 
increased. This is because before retransmit the first REQUEST packet, 
the icsk->icsk_retransmits is 0, so dccp_transmit_skb() will fetch the 
dp->dccps_iss as the retransmit sequence number.

This patch fix the problem.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>

--- a/net/dccp/output.c	2008-05-29 22:27:55.000000000 -0400
+++ b/net/dccp/output.c	2008-05-30 19:26:43.000000000 -0400
@@ -69,9 +69,6 @@ static int dccp_transmit_skb(struct sock
 
 		case DCCP_PKT_REQUEST:
 			set_ack = 0;
-			/* Use ISS on the first (non-retransmitted) Request. */
-			if (icsk->icsk_retransmits = 0)
-				dcb->dccpd_seq = dp->dccps_iss;
 			/* fall through */
 
 		case DCCP_PKT_SYNC:
@@ -526,6 +523,8 @@ int dccp_connect(struct sock *sk)
 
 	/* Initialise GAR as per 8.5; AWL/AWH are set in dccp_transmit_skb() */
 	dp->dccps_gar = dp->dccps_iss;
+	/* Initialise GSS to ISS - 1, will be increased in dccp_transmit_skb() */
+	dp->dccps_gss = SUB48(dp->dccps_iss, 1);
 
 	skb = alloc_skb(sk->sk_prot->max_header, sk->sk_allocation);
 	if (unlikely(skb = NULL))






^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2008-06-06  8:52 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04  7:37 [PATCH - test-tree] DCCP: Increment sequence number on retransmitted Wei Yongjun
2008-06-04  8:09 ` [PATCH - test-tree] DCCP: Increment sequence number on Gerrit Renker
2008-06-04 13:21 ` Arnaldo Carvalho de Melo
2008-06-04 13:38 ` Gerrit Renker
2008-06-04 15:44 ` Arnaldo Carvalho de Melo
2008-06-04 15:55 ` Gerrit Renker
2008-06-05 14:44   ` [dccp] [RFC/RFT] [Patch 0/2]: Test-tree update to handle Gerrit Renker
2008-06-05 14:44     ` [dccp] [RFC/RFT] [Patch 0/2]: Test-tree update to handle retransmissions correctly Gerrit Renker
2008-06-05 14:45     ` [dccp] [RFC/RFT] [Patch 1/2]: Allow to distinguish original and Gerrit Renker
2008-06-05 14:45       ` [dccp] [RFC/RFT] [Patch 1/2]: Allow to distinguish original and retransmitted packets Gerrit Renker
2008-06-05 14:46       ` Gerrit Renker
2008-06-05 14:47         ` [dccp] [RFC/RFT] [Patch 2/2]: Combine the functionality of enqeueing and cloning Gerrit Renker
2008-06-05 14:51       ` [dccp] [RFC/RFT] [Patch 1/2]: Allow to distinguish original and Gerrit Renker
2008-06-05 20:27       ` [dccp] [RFC/RFT] [Patch 1/2]: Allow to distinguish original Arnaldo Carvalho de Melo
2008-06-05 20:27         ` [dccp] [RFC/RFT] [Patch 1/2]: Allow to distinguish original and retransmitted packets Arnaldo Carvalho de Melo
2008-06-06  8:51       ` [dccp] [RFC/RFT] [Patch 1/2]: Allow to distinguish original Gerrit Renker
2008-06-06  8:51         ` [dccp] [RFC/RFT] [Patch 1/2]: Allow to distinguish original and retransmitted packets Gerrit Renker
2008-06-04 16:54 ` [PATCH - test-tree] DCCP: Increment sequence number on Arnaldo Carvalho de Melo
2008-06-05  6:51 ` Gerrit Renker
2008-06-05  7:33 ` Gerrit Renker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.