WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

[Xen-bugs] [Bug 447] dom0 netfilter DNAT rule that rewrites the destinat

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 447] dom0 netfilter DNAT rule that rewrites the destination port doesn't work with domU TX checksum offload
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Sat, 31 Dec 2005 20:08:27 +0000
Delivery-date: Sat, 31 Dec 2005 20:14:19 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=447





------- Additional Comments From eggdrop@xxxxxxxxx  2005-12-31 20:08 -------
I can confirm this behaviour.

Below you'll find a tcpdump. Note the bad checksum in packet 4. 192.168.1.1 is
the IP of the bridge and 192.168.1.2 is the virtual machine.

I did "nc -l -p 2000" on the virtual machine and "telnet 192.168.1.2 2000" on 
xen0:

20:42:33.410533 IP (tos 0x10, ttl  63, id 18592, offset 0, flags [DF], proto:
TCP (6), length: 60) 192.168.1.1.42780 > 192.168.1.2.2000: S, cksum 0xc6c2
(correct), 2674143109:2674143109(0) win 5840 <mss 1460,sackOK,timestamp 35874597
0,nop,wscale 2>
20:42:33.410606 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], proto: TCP
(6), length: 60) 192.168.1.2.2000 > 192.168.1.1.42780: S, cksum 0x65a6
(correct), 967998467:967998467(0) ack 2674143110 win 5792 <mss
1460,sackOK,timestamp 568189 35874597,nop,wscale 2>
20:42:33.410942 IP (tos 0x10, ttl  63, id 18593, offset 0, flags [DF], proto:
TCP (6), length: 52) 192.168.1.1.42780 > 192.168.1.2.2000: ., cksum 0xa559
(correct), 1:1(0) ack 1 win 1460 <nop,nop,timestamp 35874597 568189>

Then I try send a packet from xenU to xen0:

20:42:34.451945 IP (tos 0x0, ttl  64, id 55161, offset 0, flags [DF], proto: TCP
(6), length: 53) 192.168.1.2.2000 > 192.168.1.1.42780: P, cksum 0x837b
(incorrect (-> 0x9af3), 1:2(1) ack 1 win 1448 <nop,nop,timestamp 568294 
35874597>
20:42:34.452261 IP (tos 0x10, ttl  63, id 18594, offset 0, flags [DF], proto:
TCP (6), length: 52) 192.168.1.1.42780 > 192.168.1.2.2000: ., cksum 0xa0dd
(correct), 1:1(0) ack 2 win 1460 <nop,nop,timestamp 35875639 568294>

"ethtool -K eth0 tx off" fixes the problem.


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs