Re: in_cksum_offset(), in_delayed_cksum_offset() question
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RpyKREDXIMm1WMs3EUDEMC04Iqh077h2ncbhz9MNlHFwHVvYLLlL0r4Nq6eV/jdZltMuWlk6cIpvKO2m+RiCTpUHGvCQHjZBfW5tXOQH/TsSUlnsZUkAH5QuhY1JbRtOYbX/5GXRxSbL4Q1XPb4f5pjbc3vO8b4w4HtkIdPhn3w= Date: Tue, 23 Jan 2007 10:29:37 -0800 From: Kevin Brock <apple@kevin.com> Subject: Re: in_cksum_offset(), in_delayed_cksum_offset() question To: Adi Masputra <adi@apple.com> Cc: Darwin Kernel <darwin-kernel@lists.apple.com> Message-ID: <67D4482D-7F4D-49A7-9148-4323355B7BD8@kevin.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jan 23, 2007, at 10:19 AM, Adi Masputra wrote:
Yes, this was a long-standing bug that has been fixed recently along with the mbuf_outbound_finalize() byte-ordering issue. The fix should be available fairly soon.
It sounds like mbuf_outbound_finalize won't work at all with certain packets (large pings, for example). I knew I had to do workarounds for byte order problems with the function, but I hadn't realized that it was completely broken... To work generically with 10.4.8 and previous kernels it sounds like I need to do my own implementation of mbuf_outbound_finalize(). Kevin Brock brock@kevin.com Welcome to the club :) I had to do the same: walk the mbuf chains and do my own TCP/UDP/IPv4 header checksum computation. I was seeing the same "freeing free mbuf" panics after calling mbuf_outbound_finalize() on Intel Macs, and I noticed the same pattern: only happened when the mbuf was chained with the DLIL header in the pkthdr mbuf, and the rest of the payload split into one or more mbufs in that chain. -- Bhavesh P. Davda _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Bhavesh Davda