From owner-freebsd-net Fri Oct 11 4:27:41 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 C525837B401 for ; Fri, 11 Oct 2002 04:27:40 -0700 (PDT) Received: from hotmail.com (f83.law9.hotmail.com [64.4.9.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C93643E75 for ; Fri, 11 Oct 2002 04:27:40 -0700 (PDT) (envelope-from soheil_h_y@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 11 Oct 2002 04:27:40 -0700 Received: from 213.217.52.214 by lw9fd.law9.hotmail.msn.com with HTTP; Fri, 11 Oct 2002 11:27:40 GMT X-Originating-IP: [213.217.52.214] From: "soheil hassas yeganeh" To: freebsd-net@FreeBSD.ORG Subject: IP bad cksum (0!) Date: Fri, 11 Oct 2002 14:57:40 +0330 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Oct 2002 11:27:40.0404 (UTC) FILETIME=[3569C340:01C27119] 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 to recompute the checksum of the ip packets i wrote this lines in the ip_input.c files : ip->ip_sum =0 ; if(hlen == sizeof(struct ip)) ip->ip_sum = in_cksum_hdr(ip); else ip->ip_sum = in_cksum(m,hlen); When i make a dump it says that it has bad cksum 0! 12:25:11.858759 62.217.112.165 > 66.201.71.98: icmp: echo reply (ttl 42, id 17879, len 84, bad cksum 0!) I don't know why this doesn't work ?????? THANX _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message