RE: Cursed Checksums

From: Josan Kadett
Date: Sun Aug 22 2004 - 18:09:48 EST


It is what I intend to do, yet could you paste a working source code for;

- sniff data from a chosen interface
- put the same data in the same interface's inbound socket

If I could find how to do this via low-level libraries, I think I could
write an applet to do the mangling.

-----Original Message-----
From: linux-kernel-owner@xxxxxxxxxxxxxxx
[mailto:linux-kernel-owner@xxxxxxxxxxxxxxx] On Behalf Of Olivier Galibert
Sent: Monday, August 23, 2004 12:59 AM
To: linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: Cursed Checksums

Why don't you patch the checksum when you change the IP? It's just a
not of the sum the 16-bit words so take the old one, not it, add the
two 16-bits differences, re-not it and write it back.

OG.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/