From owner-freebsd-hackers Mon Nov 22 21:22:34 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by hub.freebsd.org (Postfix) with ESMTP id 1199014BE2 for ; Mon, 22 Nov 1999 21:22:24 -0800 (PST) (envelope-from bmilekic@dsuper.net) Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by oracle.dsuper.net (8.9.3/8.9.3) with ESMTP id AAA03921; Tue, 23 Nov 1999 00:22:05 -0500 (EST) Date: Tue, 23 Nov 1999 00:22:05 -0500 (EST) From: Bosko Milekic To: "Parthasarathy M. Aji" Cc: freebsd-hackers@FreeBSD.ORG, Clinton Xavier Berni Subject: Re: ip checksum In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 23 Nov 1999, Parthasarathy M. Aji wrote: !>Hey, !> !>I am trying to recompute the checksum of an IP packet. I use !>netinet/in_chksum.c to do this. The values returned are not correct. I've !>reset the ip_sum field to 0 before doing the sum. Is there something !>missing? !> !>thanks !> !> Would you be able to provide some code to illustrate the situation? There are several things that may go wrong. What exactly are you trying to do here? (You may be using the wrong procedure) and what are you getting for return values? --Bosko -- Bosko Milekic "I want now to tell you, gentlemen, whether you care to hear it or not, why I could not even become an insect." --F. Dostoyevski To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message