login
Header Space

 
 

incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2.6.22

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <netdev@...>
Date: Thursday, September 13, 2007 - 1:55 pm

Hello,

It seems that after some not very recent changes udp and tcp packes=20
carring data send by a loopback have incorrect cksum:

UDP:
# echo test|nc -u 127.0.0.1 1111

# tcpdump -i lo -n -v -v port 1111
tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 96 byte=
s
19:43:39.340576 IP (tos 0x0, ttl  64, id 15179, offset 0, flags [DF], proto=
: UDP (17), length: 33) 127.0.0.1.49512 > 127.0.0.1.1111: [bad udp cksum 17=
4c!] UDP, length 5

TCP:
# echo test|nc -u 127.0.0.1 1111

tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 96 byte=
s
*Correct:
19:44:27.692614 IP (tos 0x0, ttl  64, id 32100, offset 0, flags [DF], proto=
: TCP (6), length: 60) 127.0.0.1.53804 > 127.0.0.1.1111: S, cksum 0xfd54 (c=
orrect), 3426125135:3426125135(0) win 32792 <mss 16396,sackOK,timestamp 191=
2797227 0,nop,wscale 7>
19:44:27.692674 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], proto: TC=
P (6), length: 60) 127.0.0.1.1111 > 127.0.0.1.53804: S, cksum 0xea3f (corre=
ct), 3427916955:3427916955(0) ack 3426125136 win 32768 <mss 16396,sackOK,ti=
mestamp 1912797227 1912797227,nop,wscale 7>
19:44:27.692711 IP (tos 0x0, ttl  64, id 32101, offset 0, flags [DF], proto=
: TCP (6), length: 52) 127.0.0.1.53804 > 127.0.0.1.1111: ., cksum 0xd263 (c=
orrect), 1:1(0) ack 1 win 257 <nop,nop,timestamp 1912797227 1912797227>

*Incorrect:
19:44:27.692831 IP (tos 0x0, ttl  64, id 32102, offset 0, flags [DF], proto=
: TCP (6), length: 57) 127.0.0.1.53804 > 127.0.0.1.1111: P, cksum 0xfe2d (i=
ncorrect (-> 0xe07c), 1:6(5) ack 1 win 257 <nop,nop,timestamp 1912797227 19=
12797227>

*Correct:
19:44:27.692859 IP (tos 0x0, ttl  64, id 9399, offset 0, flags [DF], proto:=
 TCP (6), length: 52) 127.0.0.1.1111 > 127.0.0.1.53804: ., cksum 0xd25f (co=
rrect), 1:1(0) ack 6 win 256 <nop,nop,timestamp 1912797227 1912797227>

Tested on:
  - 2.6.22.6
  - 2.6.21.7
  - 2.6.20.11

Best regards,


 =09=09=09=09Krzysztof Ol=EAdzki
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2.6.22, Krzysztof Oledzki, (Thu Sep 13, 1:55 pm)
Re: incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2...., Krzysztof Oledzki, (Sun Sep 23, 5:18 pm)
Re: incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2...., Krzysztof Oledzki, (Mon Sep 24, 5:44 am)
Re: incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2...., Krzysztof Oledzki, (Tue Oct 2, 10:15 am)
speck-geostationary