On Thu, Aug 03, 2006 at 11:40:01AM +0200, Patrick McHardy wrote: > > > Are you sure? If ip_summed is CHECKSUM_COMPLETE then skb->csum is the > > checksum of the payload *without* the pseudo header. > > The pseudohdr is included indirectly through the tcp/udp checksum.
Yes of course, the payload gets balanced out by the header checksum, but not the pseudoheader. Now I get you :) > Yes, the 32-bit thing is a bug, I meant it works fine without inverting > the checksum. Right, I forgot about the checksum invariance under negation. In that case we can get rid of the tildes two lines down as well for consistency. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html