Re: Socket Filter NKE for both TCP and UDP
Re: Socket Filter NKE for both TCP and UDP
- Subject: Re: Socket Filter NKE for both TCP and UDP
- From: Peter Lovell <email@hidden>
- Date: Mon, 26 Jun 2006 08:00:15 -0400
On Jun 21, 2006, at 7:17 PM, Russ Seehafer wrote:
Be sure you have a pointer struct and a separate signature for each, though. So it's one kext with a bunch of entry points, two structs and two signatures.
Are you speaking of the sflt_filter structure? Is it necessary to have a different structure with different function pointers for each registration?
Exactly. You need a handle for each registration, so you need a separate structure to hold each one.
The entries in each can all point to the same routines for attach, detach etc of course. Or you can have a few of them point to specific versions for each registration. In my case, I use this to differentiate between TCP/UDP and between IPv4 and v6.
Cheers.....Peter |
_______________________________________________
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