2.1.90: Weird telnet hangs continue

Adam J. Richter (adam@yggdrasil.com)
Thu, 26 Mar 1998 00:48:05 -0800


Hello David,

Just FYI, I still get mysterious telnet hangs under 2.1.90 with this
patch, and I have also observed the "TCPv4 bad checksum" error between a
2.1.90 machine with this patch and a machine running 2.0.33. I hope
this feedback is helpful. Anyhow, thanks for trying.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 205
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

>From: "David S. Miller" <davem@dm.cobaltmicro.com>
>Date: Sat, 21 Mar 1998 10:35:35 -0800
>
> From: Mitch Adair <mitch@acan.net>
> Date: Sat, 21 Mar 1998 12:22:40 -0600 (CST)
>
> Ok, I'm thinking maybe the 2.0.33 box isn't the prob. I look at syslog
> messages on the 2.1.90 box and see this:
>
> Mar 21 11:24:38 bengal kernel: TCPv4 bad checksum from 206.202.0.2:0017 to 206.202.2.150:0456, len=20/20/40
> Mar 21 11:27:59 bengal kernel: TCPv4 bad checksum from 206.202.0.2:0017 to 206.202.2.150:0456, len=20/20/40
> Mar 21 11:28:45 bengal kernel: TCPv4 bad checksum from 206.202.0.2:0017 to 206.202.2.150:0454, len=20/20/40
> Mar 21 11:29:12 bengal kernel: TCPv4 bad checksum from 206.202.0.2:0017 to 206.202.2.150:045a, len=20/20/40
> Mar 21 11:29:15 bengal kernel: TCPv4 bad checksum from 206.202.0.3:0017 to 206.202.2.150:045b, len=20/20/40
> Mar 21 11:29:36 bengal kernel: TCPv4 bad checksum from 206.202.0.3:0017 to 206.202.2.150:045b, len=20/20/40
>
> (0.2 is Linux server, 0.3 is Sun, 2.150 is Linux 2.1.90 btw)
>
>Duh, a silly fix did not make it into 2.1.90 it appears.
>In linux/net/ipv4/tcp.c:tcp_do_sendmsg() change:
>
> int last_byte_was_odd = (copy & 1);
>
>to be instead
>
> int last_byte_was_odd = (copy % 4);
>
>Checksum problems will go away, and so will the stuck connections.
>
>Later,
>David S. Miller
>davem@dm.cobaltmicro.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu