Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2001 18:51:02 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        net@freebsd.org
Cc:        jlemon@freebsd.org
Subject:   t_dupacks to u_int?
Message-ID:  <20011117185102.H13393@elvis.mu.org>

next in thread | raw e-mail | index | archive | help
Any problems with this?


Index: tcp_input.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/tcp_input.c,v
retrieving revision 1.141
diff -u -r1.141 tcp_input.c
--- tcp_input.c	12 Sep 2001 08:37:54 -0000	1.141
+++ tcp_input.c	18 Nov 2001 00:21:27 -0000
@@ -100,7 +100,10 @@
 
 MALLOC_DEFINE(M_TSEGQ, "tseg_qent", "TCP segment queue entry");
 
-static int	tcprexmtthresh = 3;
+static unsigned int	tcprexmtthresh = 3;
+SYSCTL_UINT(_net_inet_tcp, OID_AUTO, rexmtthresh, CTLFLAG_RW,
+    &tcprexmtthresh, 0, "Max duplicate acks before fast rexmit");
+
 tcp_cc	tcp_ccgen;
 
 struct	tcpstat tcpstat;
Index: tcp_var.h
===================================================================
RCS file: /home/ncvs/src/sys/netinet/tcp_var.h,v
retrieving revision 1.73
diff -u -r1.73 tcp_var.h
--- tcp_var.h	5 Oct 2001 21:33:38 -0000	1.73
+++ tcp_var.h	18 Nov 2001 00:21:13 -0000
@@ -65,7 +65,7 @@
  */
 struct tcpcb {
 	struct	tsegqe_head t_segq;
-	int	t_dupacks;		/* consecutive dup acks recd */
+	u_int	t_dupacks;		/* consecutive dup acks recd */
 	struct	tcptemp	*unused;	/* unused */
 
 	struct	callout *tt_rexmt;	/* retransmit timer */


-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
                           http://www.morons.org/rants/gpl-harmful.php3

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011117185102.H13393>