Re: Upd checksum calculation
Re: Upd checksum calculation
- Subject: Re: Upd checksum calculation
- From: Allan Hoeltje <email@hidden>
- Date: Tue, 11 Oct 2005 09:34:39 -0700
I am sending the packets back to the kext via sendmsg() on the socket
obtained from the kext with a call to socket( PF_SYSTEM, SOCK_DGRAM,
SYSPROTO_CONTROL ).
As to why I don't use "generic functionality" for sending datagrams? Well,
after reading the pdf's from Apple on how to do an IP filter which interacts
with a user client it seemed to me that it was best to stay within the
described guidelines. I am no expert in this area so when I see sample code
from Cupertino I tend to follow it.
-Allan
"Mike Smith" <email@hidden> wrote on 10/10/05 7:58 PM:
>
> On Oct 10, 2005, at 7:15 PM, Mike Smith wrote:
>
>> Allan,
>>
>> Nothing says that you have to inject the packet at the same point;
>> why not
>> use the generic functionality for sending UDP datagrams and let
>> the kernel frame it for you?
>
> For that matter, re-reading your description again, why not just send
> the
> packet directly from the user agent with send(2)?
>
>>
>> = Mike
_______________________________________________
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