From owner-freebsd-net Wed Sep 11 10: 9:38 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 588D437B4F0 for ; Wed, 11 Sep 2002 10:09:22 -0700 (PDT) Received: from hotmail.com (f64.law9.hotmail.com [64.4.9.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id C178743E6E for ; Wed, 11 Sep 2002 10:09:21 -0700 (PDT) (envelope-from soheil_h_y@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 11 Sep 2002 10:09:21 -0700 Received: from 80.75.12.10 by lw9fd.law9.hotmail.msn.com with HTTP; Wed, 11 Sep 2002 17:09:21 GMT X-Originating-IP: [80.75.12.10] From: "soheil h" To: freebsd-net@FreeBSD.ORG Subject: computing the Ack Seq. No. Date: Wed, 11 Sep 2002 21:39:21 +0430 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Sep 2002 17:09:21.0650 (UTC) FILETIME=[F8B72520:01C259B5] 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 hi list I wrote the code below and it doesn't work correctly please tell me what is wrong int len, tlen; tcpiphdr ti, ti_send; int hlen; int acklen; /* the hlen is ip header hlen */ .... /* the ip->ip_len is ntohs'ed by NTOHS in io_input() */ len = ti->ti_len; tlen = ti->ti_off << 2; acklen = len - hlen - tlen; ti_send->ti_ack = htonl(ntohl(ti->ti_seq) + acklen ); /* this field is incorrect and i don't know why */ .... _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message