Mac OS X Reference Library Apple Developer
Search

enetlognke

Last Revision:
Version 1.1, 2005-08-10
Updated to produce a universal binary. No code changes required.
Build Requirements:
Mac OS X 10.4 or greater and Xcode 2.0
Runtime Requirements:
Mac OS X 10.4 or greater

The enetlognke demonstrates the implementation of a network interface filter for processing incoming and outgoing packets using the new Kernel Programming Interfaces provided in OS X 10.4. The sample demonstrates the use of the fine grain locking API's to serialize access to data queues, as well as the mbuf tag calls for tracking processing of mbufs by kernel extension code. This sample also demonstrates how the kernel process can "swallow" a packet and re-inject the packet at a later time. The sample demonstrates the implementation of each of the intercept functions for an interface filter kernel process. This sample code has been updated to include a project (for Xcode 2.1) to produce a universal binary and there were no code changes required for it to run correctly on the Developer Transition Systems.




Last updated: 2005-08-10

Did this document help you? Yes It's good, but... Not helpful...