Re: kpi_ipfilter modifying checksum
Re: kpi_ipfilter modifying checksum
- Subject: Re: kpi_ipfilter modifying checksum
- From: Josh Graessley <email@hidden>
- Date: Tue, 14 Feb 2006 15:25:30 -0800
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.
-josh
On Feb 14, 2006, at 3:20 PM, matt jaffa wrote:
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?
Thanks,
Matt
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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