Re: KEXT IP Filter sample code?
Re: KEXT IP Filter sample code?
- Subject: Re: KEXT IP Filter sample code?
- From: Allan Hoeltje <email@hidden>
- Date: Wed, 15 Jun 2005 18:39:08 -0700
Josh,
Thanks for the quick reply. I know that tcplognke is a socket filter and
even though I need an IP filter it would still be helpful to see some kind
of sample code, Tiger or pre-Tiger, that uses KEXT. I am a bit concerned
about writing anything at this level so any samples you have at Apple would
be greatly appreciated.
> The SharedIP project in darwin...
I assume that you mean the SharedIP source that lives at:
http://www.opensource.apple.com/projects/darwin/6.0/projects.html
Are there any other projects there that would be of KEXT interest? The page
could use a short descriptor that tells what the project is about.
Thanks again for your help. I guess it is time for me to grab my towel,
jump into KEXT, and not panic.
-Allan
"Josh Graessley" <email@hidden> wrote on 6/15/05 5:36 PM:
>
> The IP filter is only available on Tiger and later. Either way, you
> will need to implement two kexts, one for Mac OS X prior to Tiger and
> one for Mac OS X Tiger and later.
>
> The SharedIP project in darwin is a sample of an IP filter. The IP
> filter is pretty basic. It has two callback functions, one for
> inbound packets and one for outbound packets. The real trick is
> dealing with checksums if you modify packets.
>
> I believe the tcplognke implements a socket layer filter. It is being
> rewritten to use the new KPIs on Tiger. I don't believe the new Tiger
> version has been released yet.
>
> -josh
>
> On Jun 15, 2005, at 4:13 PM, Allan Hoeltje wrote:
>
>> I just joined the list today so I apologize if this is a frequent
>> question.
>>
>> I need to implement an NKE Filter that modifies IP packets for a VOIP
>> client, and, yes, I do need it as a KEXT and not at the app
>> layer. :-)
>>
>> I am new to Kernel Extensions but have read the NKE and KEXT
>> documentation
>> in the Darwin Kernel area on the ADC. The docs refer to a
>> TCPLogger socket
>> NKE named tcplognke, is this code available somewhere?
>>
>> I am actually more interested in the capabilities of an IP Filter
>> NKE, is
>> there any sample code for IP Filter?
>>
>>
>> Thanks!
>>
>> Allan Hoeltje
>
_______________________________________________
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