From owner-freebsd-hackers Thu Dec 6 19:48:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hoolan.org (db217.csie.ncu.edu.tw [140.115.50.217]) by hub.freebsd.org (Postfix) with ESMTP id EF18A37B419 for ; Thu, 6 Dec 2001 19:48:20 -0800 (PST) Received: from localhost (jeff@localhost [127.0.0.1]) by hoolan.org (8.11.6/8.11.6) with ESMTP id fB73kIu94863; Fri, 7 Dec 2001 11:46:19 +0800 (CST) (envelope-from jeff@hoolan.org) Date: Fri, 7 Dec 2001 11:46:18 +0800 (CST) From: Yung-Sheng Tang X-Sender: jeff@hoolan.org To: Bill Fenner Cc: freebsd-hackers@freebsd.org Subject: Re: UDP checksum error after encapsulating multicast packet In-Reply-To: <200112062043.MAA02028@windsor.research.att.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 6 Dec 2001, Bill Fenner wrote: > > Please try this patch. It gives multicast packets on a multicast > router similar treatment to those that IPSEC packets get, by calculating > the delayed checksum early and not permitting it to be offloaded to > the interface. > It does not work. 11:28:52.098146 150.9.120.183.1063 > 224.3.4.5.2345: [udp sum ok] udp 16 (ttl 16, id 25575, len 44) 4500 002c 63e7 0000 1011 5411 9609 78b7 e003 0405 0427 0929 0018 5571 ea02 0400 0000 0000 0000 0000 bb30 0100 11:28:52.098266 150.9.120.183 > 192.9.200.127: 150.9.120.183.1063 > 224.3 .4.5.2345: [bad udp cksum 7e62!] udp 16 (ttl 15, id 25575, len 44) (ttl 64, id 25576, len 64) 4500 0040 63e8 0000 4004 7f88 9609 78b7 c009 c87f 4500 002c 63e7 0000 0f11 5511 9609 78b7 e003 0405 0427 0929 0018 f2f2 ea02 0400 0000 0000 0000 0000 bb30 0100 However, there does exist one case that have good checksum, no matter I apply the patch or not. 11:28:52.474363 150.9.120.66.1088 > 234.8.7.1.1088: [udp sum ok] udp 64 (ttl 2, id 14422, len 92) 4500 005c 3856 0000 0211 80e6 9609 7842 ea08 0701 0440 0440 0048 7f34 6d65 6368 7075 6232 0000 0000 0100 0000 605d 7381 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 11:28:52.474508 150.9.120.183 > 192.9.200.127: 150.9.120.66.1088 > 234.8. 7.1.1088: [udp sum ok] udp 64 [ttl 1] (id 14422, len 92) (ttl 64, id 255 78, len 112) 4500 0070 63ea 0000 4004 7f56 9609 78b7 c009 c87f 4500 005c 3856 0000 0111 81e6 9609 7842 ea08 0701 0440 0440 0048 7f34 6d65 6368 7075 6232 0000 0000 0100 0000 605d 7381 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 BTW, I am using 4.4-RELEASE. Thank you. -- Yung-Sheng Jeff Tang To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message