Re: kpi_ipfilter modifying checksum
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com matt jaffa writes:
Hi,
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?
You're probably thinking of in_cksum or in_cksum_skip. You can pick up BSD licensed versions of these routines from nearly any BSD OS. (Free,Net,Open,Dragonfly). Drew _______________________________________________ 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)
-
Andrew Gallatin