From owner-freebsd-net Sat Nov 17 16:51:10 2001 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 9AA7A37B405; Sat, 17 Nov 2001 16:51:07 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 802C781D01; Sat, 17 Nov 2001 18:51:02 -0600 (CST) Date: Sat, 17 Nov 2001 18:51:02 -0600 From: Alfred Perlstein To: net@freebsd.org Cc: jlemon@freebsd.org Subject: t_dupacks to u_int? Message-ID: <20011117185102.H13393@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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