Re: Upd checksum calculation
Re: Upd checksum calculation
- Subject: Re: Upd checksum calculation
- From: Mike Smith <email@hidden>
- Date: Tue, 11 Oct 2005 10:31:46 -0700
On Oct 11, 2005, at 9:34 AM, Allan Hoeltje wrote:
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.
See Stevens, et. al. I'd suggest the use of sendto(2) myself, it's
probably
the simplest of the *standard* ways to send UDP datagrams on BSD
systems.
= 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