Re: How to write Network Kernel Extensions
Re: How to write Network Kernel Extensions
- Subject: Re: How to write Network Kernel Extensions
- From: Koryn Grant <email@hidden>
- Date: Thu, 5 Feb 2004 08:44:08 +1300 (NZDT)
On Wed, 4 Feb 2004 email@hidden wrote:
>
Hi,
>
>
I am not sure if this is the right place to ask this question !!
>
>
I am looking for a "netfilter" kind of utility in MAC OS X or above.
>
How can I write a protocol handler NKE, which diverts all the packets of a
>
protocol, say TCP, packets to a handler program.
You don't need to write an NKE for this - try using an ipfw rule that sends
the desired packets to a divert socket, and have a userland application open
the divert socket and process the packets. 'man divert' and 'man ipfw' will
give more info.
Cheers,
Koryn
--
Dr Koryn Grant phone +64 7 8346729
Senior Software Engineer mobile +64 21 488386
Endace Technology Ltd email email@hidden
Hamilton, New Zealand web
http://www.endace.com/
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.