Re: kpi_ipfilter modifying checksum
Re: kpi_ipfilter modifying checksum
- Subject: Re: kpi_ipfilter modifying checksum
- From: Andrew Gallatin <email@hidden>
- Date: Tue, 14 Feb 2006 19:50:12 -0500 (EST)
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden