Re: How to write Network Kernel Extensions
On Wed, 4 Feb 2004 mamuneeb@hss.hns.com 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 koryn@endace.com Hamilton, New Zealand web http://www.endace.com/ _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Koryn Grant