site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: Microsoft-Entourage/10.1.4.030702.0 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" <jgraessley@apple.com> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com