Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2002 20:43:08 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        soheil hassas yeganeh <soheil_h_y@hotmail.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: IP bad cksum (0!)
Message-ID:  <20021013174308.GD10829@hades.hell.gr>
In-Reply-To: <F83YiMCIqtQvAauNjVu0000036e@hotmail.com>
References:  <F83YiMCIqtQvAauNjVu0000036e@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-10-11 14:57, soheil hassas yeganeh <soheil_h_y@hotmail.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021013174308.GD10829>