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 [[EMAIL PROTECTED]]
'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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to