site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -josh On Jan 2, 2007, at 10:19 AM, Josh Graessley wrote: _______________________________________________ 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 I think I got those backwards. IP header checksum calculation is expecting network byte order and TCP/UDP checksum is expecting host byte order. If I remember correctly, the mbuf_outbound_finalize code is entirely broken because it calls a function to calculate the ip header where it is expecting the ip header to be in host byte order and it calls a function to calculate the TCP/UDP header where it expected the ip_len field to be in network byte order. The TCP/UDP is the trickier part to generate. smime.p7s