From owner-freebsd-net Mon Aug 12 2:27:28 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 EC97637B400 for ; Mon, 12 Aug 2002 02:27:26 -0700 (PDT) Received: from hotmail.com (f102.law9.hotmail.com [64.4.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id B549B43E5E for ; Mon, 12 Aug 2002 02:27:26 -0700 (PDT) (envelope-from soheil_h_y@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 12 Aug 2002 02:27:26 -0700 Received: from 62.217.112.191 by lw9fd.law9.hotmail.msn.com with HTTP; Mon, 12 Aug 2002 09:27:26 GMT X-Originating-IP: [62.217.112.191] From: "soheil h" To: freebsd-net@freebsd.org Subject: TCP CHECKSUM ( emergency ) Date: Mon, 12 Aug 2002 13:57:26 +0430 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 12 Aug 2002 09:27:26.0541 (UTC) FILETIME=[78D49FD0:01C241E2] 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 as R. Stevens says in TCP/IP Ill. Vol.1 the tcp checksum is computed on the data and its own header. but ip checksum is computed only on the ip header. i want to know if the tcp checksum is computed on the ip header or not and if i have a "struct mbuf m" that its m->m_data points to an ip packet and i know the tcp cksum is not true how can i compute the tcp cksum the ip packet is passing through my FreeBSD gateway something goes wrong on tcp checksums i want to compute it again . some where in ip_input.c if i know everything ,but this, is true. (by the way ,using in_cksum() ,does this code work for me ? : th->th_sum = in_cksum(m, m->m_len) ) _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message