On 2002-10-11 14:57, soheil hassas yeganeh <[EMAIL PROTECTED]> 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. -- [EMAIL PROTECTED] FreeBSD: The Power to Serve FreeBSD 5.0-CURRENT #12: Thu Oct 10 21:08:38 EEST 2002 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message
