Re: Entirely ignoring TCP and UDP checksum in kernel level

From: Kalin KOZHUHAROV
Date: Sat Aug 21 2004 - 04:09:28 EST


Josan Kadett wrote:
Here is the very original linux-kernel mailing list, and if I cannot find an
answer here, then nowhere on earth can this answer be found. I also saw some
other messages regarding the same issue on the net. None of them is answered
correctly; and also as if this is a very "forbidden" thing to disable the
checksums, most replies are as if they are "unbreakable rules of god".
Really, I am losing my patience with this. It is also very odd to write a
low-level application in order to just disable a "feature" of the kernel to
deal with a faulty piece of embedded firmware.

OK, try this, not tested:

replace the return statements with "return 0;" in:

net/ipv4/udp.c, function __udp_checksum_complete, about line 759
net/ipv4/icp_input.c, function __tcp_checksum_complete_user, about line 4070

* line numbers above are for linux-2.6.7

Kalin.

--
|| ~~~~~~~~~~~~~~~~~~~~~~ ||
( ) http://ThinRope.net/ ( )
|| ______________________ ||

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