Re: [UPDATE] zerocopy.. While working on ip.h stuff

Craig Milo Rogers (rogers@ISI.EDU)
Mon, 26 Feb 2001 18:31:59 -0800


>> a competing philosophy that said that the IP checksum must be
>> recomputed incrementally at routers to catch hardware problems in the
...
>ah.. we do recalculate IP Checksums now.. when we update any of the
>timestamp rr options etc..

But, do you do it incrementally? By which I mean: subtract
(appropriately) the old value of the octet from the existing checksum,
field in the packet then add (appropriately) the new value of the
octet to the checksum? Simply recalculating the IP checksum from
scratch can generate a "correct" checksum for a packet that was
damaged*** while waiting around in memory.

I don't know if people worry about this now, but 20 years ago
there was a fuss about it. Further discussion offline, please.

Craig Milo Rogers

*** Maybe by hardware trouble, or maybe because someone followed a bad
pointer and stomped on part of the header.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/