From owner-freebsd-net Wed Sep 11 19:27: 6 2002 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 B494B37B400 for ; Wed, 11 Sep 2002 19:27:03 -0700 (PDT) Received: from smtpout.mac.com (smtpout.mac.com [204.179.120.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F08943E88 for ; Wed, 11 Sep 2002 19:27:03 -0700 (PDT) (envelope-from justin@mac.com) Received: from smtp-relay02.mac.com (smtp-relay02-en1 [10.13.10.225]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id g8C2R3Or024177 for ; Wed, 11 Sep 2002 19:27:03 -0700 (PDT) Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65]) by smtp-relay02.mac.com (8.12.1/8.12.1/1.0) with ESMTP id g8C2R2ZH019204 for ; Wed, 11 Sep 2002 19:27:02 -0700 (PDT) Received: from grinch ([12.234.224.67]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id H2B05200.SDW for ; Wed, 11 Sep 2002 19:27:02 -0700 Date: Wed, 11 Sep 2002 19:27:01 -0700 Subject: Re: computing the Ack Seq. No. Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) From: "Justin C. Walker" To: net@FreeBSD.ORG Content-Transfer-Encoding: 7bit In-Reply-To: <200209120213.g8C2DUZL032515@vashon.polstra.com> Message-Id: <1E71621C-C5F7-11D6-A7E3-00306544D642@mac.com> X-Mailer: Apple Mail (2.482) 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 On Wednesday, September 11, 2002, at 07:13 PM, John Polstra wrote: > In article <5A3F3774-C5B2-11D6-A7E3-00306544D642@mac.com>, > Justin C. Walker wrote: >> >> On Wednesday, September 11, 2002, at 10:50 AM, John Polstra wrote: >> >>> In article , >>> soheil h wrote: >>>> hi list >>>> I wrote the code below and it doesn't work correctly >>>> please tell me what is wrong [snip] > I think that part is OK. "len" is the total packet length including > the IP and TCP headers. He takes that and subtracts out the lengths > of the headers to get the number of bytes to ack (acklen). That's > correct: you ack only the payload, not the headers. D'oh! That's ti_, not th_! Thanks. Justin -- /~\ The ASCII Justin C. Walker, Curmudgeon-at-Large \ / Ribbon Campaign X Help cure HTML Email / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message