From owner-freebsd-net Tue Jun 20 6:24:47 2000 Delivered-To: freebsd-net@freebsd.org Received: from pooh.aist-nara.ac.jp (inet1.aist-nara.ac.jp [163.221.52.121]) by hub.freebsd.org (Postfix) with ESMTP id 0934F37BE6A for ; Tue, 20 Jun 2000 06:24:44 -0700 (PDT) (envelope-from demizu@dd.iij4u.or.jp) Received: from localhost by pooh.aist-nara.ac.jp (8.8.7/2.8Wb) id NAA00326; Tue, 20 Jun 2000 13:24:36 GMT From: Noritoshi Demizu To: freebsd-net@FreeBSD.ORG Subject: question on tcp_xmit_timer() of FreeBSD 4.0R X-Mailer: Mew version 1.69 on Emacs 19.28.1 / Mule 2.3 X-URL: http://infonet.aist-nara.ac.jp/member/nori-d/ Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000620222435Z.demizu@dd.iij4u.or.jp> Date: Tue, 20 Jun 2000 22:24:35 +0900 X-Dispatcher: impost version 0.99i (Apr. 6, 1997) Lines: 25 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a question about the 2nd argument "rtt" of tcp_xmit_timer() of FreeBSD 4.0R. Why are the 2nd arguments in following code calculated differently ? i.e. for timestamp option, +1. l.1857, netinet/tcp_input.c, tcp_input() if (to.to_flag & TOF_TS) tcp_xmit_timer(tp, ticks - to.to_tsecr + 1); else if (tp->t_rtttime && SEQ_GT(th->th_ack, tp->t_rtseq)) tcp_xmit_timer(tp, ticks - tp->t_rtttime); Why is `1' subtracted from the 2nd argument "rtt" here ? l.2448, netinet/tcp_input.c, tcp_xmit_timer() delta = ((rtt - 1) << TCP_DELTA_SHIFT) - (tp->t_srtt >> (TCP_RTT_SHIFT - TCP_DELTA_SHIFT)); These codes works for 3.x and earlier versions. But I am not sure they are still OK for 4.0R. I could not explain to students, so,,, could somebody help us? Thank you very much. Noritoshi Demizu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message