patch-1.3.75 linux/net/ipv4/tcp_output.c

Next file: linux/net/unix/af_unix.c
Previous file: linux/net/ipv4/tcp_input.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.74/linux/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
@@ -230,10 +230,10 @@
 	 */
 	 
 	while((skb = skb_peek(&sk->write_queue)) != NULL &&
-		before(skb->end_seq, sk->window_seq + 1) &&
+		!after(skb->end_seq, sk->window_seq) &&
 		(sk->retransmits == 0 ||
 		 sk->ip_xmit_timeout != TIME_WRITE ||
-		 before(skb->end_seq, sk->rcv_ack_seq + 1))
+		 !after(skb->end_seq, sk->rcv_ack_seq))
 		&& sk->packets_out < sk->cong_window) 
 	{
 		IS_SKB(skb);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this