From owner-freebsd-net Sun Dec 15 23:34:15 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 DC13437B401 for ; Sun, 15 Dec 2002 23:34:14 -0800 (PST) Received: from hotmail.com (f29.law15.hotmail.com [64.4.23.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FC5143EA9 for ; Sun, 15 Dec 2002 23:34:14 -0800 (PST) (envelope-from soheil_hh@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 15 Dec 2002 23:34:11 -0800 Received: from 194.225.40.7 by lw15fd.law15.hotmail.msn.com with HTTP; Mon, 16 Dec 2002 07:34:10 GMT X-Originating-IP: [194.225.40.7] From: "soheil soheil" To: freebsd-net@freebsd.org Subject: RAW_SOCK tcp checksum computing Date: Mon, 16 Dec 2002 07:34:10 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 16 Dec 2002 07:34:11.0243 (UTC) FILETIME=[8690EFB0:01C2A4D5] 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 Dear All I used a SOCK_RAW and IPPROTO_TCP and set the IPHDRINCL option for that socket. If we put the th_sum to 0 , does the kernel , itself , comput the tcp sum or not ? how can i make the kernel compute the cksum of the TCPHDR ? By the way , i want to know if there is any library to compute a ip_cksum and tcp_cksum of a buffer of a TCP/IP packet ? THANX _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message