Re: kpi_ipfilter modifying checksum
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -josh On Feb 14, 2006, at 3:20 PM, matt jaffa wrote: Hi, Thanks, Matt _______________________________________________ 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/jgraessley%40apple.com _______________________________________________ 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 This didn't make it in to Tiger. You'll need to manually calculate the new checksum. It is also very important to verify the old checksum before modifying the packet. If there was corruption and you simply modify the packet then calculate the right checksum, you've effectively disabled the checksum. I am changing the inbound data on a kpi_ipfilter. I need to redo the checksum so the packet is not thrown away. I have been told there is a method in the kernel that can calculate the checksum by passing in the mbuf reference or it was an unsigned char array. Does anyone know where this might be? This was on 10.3, so is there one available on Tiger I could use? This email sent to jgraessley@apple.com smime.p7s
participants (1)
-
Josh Graessley