Ethereal-users: Re: [Ethereal-users] TCP checksum problems...

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jens Petersohn <jkp@xxxxxxx>
Date: Thu, 14 Jun 2001 09:58:06 -0500 (CDT)
> 
> > I'm building Ethereal 0.8.18 sources on MIPS/IRIX.
> 
> 32-bit or 64-bit?

I'm building the app as n32, so that shouldn't be a problem.
I did try your change, but didn't make any difference
as expected.
After analyzing the pattern a bit, I think the problem is
in the way the kernel is preparing the data for the raw
socket, not in ethereal. The checksum that is added
seems to be nonsense (frequently it's 0xfafa, even for
sequential packets which differ in sequence number,
so they should have different checksums).
The problem only occurs on Octanes. I tried the same
binary on O2, it worked fine.

Thanks,

Jens Petersohn
 
> If it's 64-bit, try changing
> 
> 	union {
> 		guint16 s[2];
> 		long	l;
> 	} l_util;
> 
> in "in_cksum.c" to
> 
> 	union {
> 		guint16 s[2];
> 		guint32	l;
> 	} l_util;
> 
> (I'm assuming IRIX on 64-bit MIPS platforms is LP64) and see if that
> helps.
> 


-- 
           Jens Petersohn            655F Lone Oak Drive
Telephone: (651) 683-3128            Mailstop SGI-EAG
Email:     jkp@xxxxxxx               Eagan, MN 55121

           0,1 ... my two bits worth.