Re: Sendfile, loopback, and TCP header checksum

Andi Kleen (ak@suse.de)
13 Mar 2003 22:58:27 +0100


Rob Ekl <lkhelp@rekl.yi.org> writes:

> Is this something that even needs to be addressed, since the receiver
> would discard the packet if the checksum is incorrect, but since it's over
> loopback, there's no chance of receiving data corrupted by the transport
> medium and loopback ignores the checksum?

This is an intentional optimization. Loopback doesn't need checksums,
so it doesn't generate or check them.

-Andi
-
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/