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

Next file: linux/net/ipv4/udp.c
Previous file: linux/net/ipv4/tcp_ipv4.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
@@ -5,7 +5,7 @@
  *
  *		Implementation of the Transmission Control Protocol(TCP).
  *
- * Version:	$Id: tcp_output.c,v 1.113 1999/09/07 02:31:39 davem Exp $
+ * Version:	$Id: tcp_output.c,v 1.114 2000/01/09 02:19:43 davem Exp $
  *
  * Authors:	Ross Biro, <bir7@leland.Stanford.Edu>
  *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -192,7 +192,7 @@
 
 		clear_delayed_acks(sk);
 		tp->last_ack_sent = tp->rcv_nxt;
-		tcp_statistics.TcpOutSegs++;
+		TCP_INC_STATS(TcpOutSegs);
 		tp->af_specific->queue_xmit(skb);
 	}
 #undef SYSCTL_FLAG_TSTAMPS
@@ -677,7 +677,7 @@
 
 	/* Update global TCP statistics and return success. */
 	sk->prot->retransmits++;
-	tcp_statistics.TcpRetransSegs++;
+	TCP_INC_STATS(TcpRetransSegs);
 
 	return 0;
 }
@@ -941,7 +941,7 @@
 
 	skb->csum = 0;
 	th->doff = (tcp_header_size >> 2);
-	tcp_statistics.TcpOutSegs++;
+	TCP_INC_STATS(TcpOutSegs);
 	return skb;
 }
 
@@ -1009,7 +1009,7 @@
 	__skb_queue_tail(&sk->write_queue, buff);
 	tp->packets_out++;
 	tcp_transmit_skb(sk, skb_clone(buff, GFP_KERNEL));
-	tcp_statistics.TcpActiveOpens++;
+	TCP_INC_STATS(TcpActiveOpens);
 
 	/* Timer for repeating the SYN until an answer. */
 	tcp_reset_xmit_timer(sk, TIME_RETRANS, tp->rto);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)