From owner-freebsd-net Sun Oct 13 11: 7:44 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 F3C7737B401 for ; Sun, 13 Oct 2002 11:07:42 -0700 (PDT) Received: from nic.upatras.gr (nic.upatras.gr [150.140.129.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 6D0B343E6E for ; Sun, 13 Oct 2002 11:07:41 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 15704 invoked from network); 13 Oct 2002 18:00:40 -0000 Received: from upnet-dialinpool-85.upnet.gr (HELO hades.hell.gr) (@150.140.128.169) by nic.upatras.gr with SMTP; 13 Oct 2002 18:00:40 -0000 Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g9DI7jaW011684; Sun, 13 Oct 2002 21:07:45 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g9DHh97i011279; Sun, 13 Oct 2002 20:43:09 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 13 Oct 2002 20:43:08 +0300 From: Giorgos Keramidas To: soheil hassas yeganeh Cc: freebsd-net@FreeBSD.ORG Subject: Re: IP bad cksum (0!) Message-ID: <20021013174308.GD10829@hades.hell.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 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 2002-10-11 14:57, soheil hassas yeganeh wrote: > 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 ?????? Use diff(1) to show us exactly where those changes were made. Apart from a few stylistic bogons that the above fragment of source has, it's really impossible to understand why it fails without seeing exactly where the change was made. -- keramida@FreeBSD.org FreeBSD: The Power to Serve FreeBSD 5.0-CURRENT #12: Thu Oct 10 21:08:38 EEST 2002 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message