From owner-freebsd-net@FreeBSD.ORG Mon Jul 4 19:14:32 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E82C16A41C; Mon, 4 Jul 2005 19:14:32 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1108043D49; Mon, 4 Jul 2005 19:14:30 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id j64JESGd023529; Mon, 4 Jul 2005 12:14:28 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id j64JESvX023528; Mon, 4 Jul 2005 12:14:28 -0700 (PDT) (envelope-from jmg) Date: Mon, 4 Jul 2005 12:14:28 -0700 From: John-Mark Gurney To: Christian Vogt Message-ID: <20050704191428.GQ727@funkthat.com> Mail-Followup-To: Christian Vogt , freebsd-net@freebsd.org, TM-RO2 , wollman@FreeBSD.org References: <42C986BB.4020409@tm.uka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42C986BB.4020409@tm.uka.de> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p1 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-net@freebsd.org, TM-RO2 Subject: Re: tcp_xmit_timer() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2005 19:14:32 -0000 Christian Vogt wrote this message on Mon, Jul 04, 2005 at 20:58 +0200: > Hi everybody, > > just a nit in sys/netinet/tcp_input.c:tcp_xmit_timer(). A comment says: > > /* > * srtt is stored as fixed point with 5 bits after the > * binary point (i.e., scaled by 8). The following magic > * is equivalent to the smoothing algorithm in rfc793 with > * an alpha of .875 (srtt = rtt/8 + srtt*7/8 in fixed > * point). Adjust rtt to origin 0. > */ > > But it should say "...(i.e., scaled by 32)". > > Hope this wasn't mentioned before on this list. This isn't the only mismatch: #define TCP_RTT_SHIFT 5 /* shift for srtt; 3 bits frac. */ Maybe wollman can shed light on this? It looks like he just didn't update the comments in both places... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."