site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi Aingoppa, what protocol do you want to implement? We have implemented SCTP, a transport protocol. Basically, it is the same code as in the FreeBSD 7.0 kernel, but with some changes for Mac OS X (locking, timers). You need to use <dict> <key>com.apple.kernel</key> <string>8.10.1</string> </dict> in your Info.plist file and also use some headers from the kernel sources instead of the headers provided by Apple. This all and the usage of net_add_proto() and net_del_proto() is an unsupported API and has several drawbacks: 1. Apple can change it any time or make it impossible to implement transport protocols via NKEs. Fortunately, we could use the API from 10.3.9 to 10.4.10. Not sure about 10.5. 2. You can build a NKE only for one specific Mac OS X version. Although, you can build a universal binary for the NKE, it does only load on Intel or PPC, because the kernel has different versions. 3. You really depend on Apple, providing the source for the kernel to get the header files you need (you do not need the source files). This means you can not delevop/test a Leopard version until Apple releases the sources for a Leopard kernel. Not sure when this will happen. Currently not even the 10.4.10 sources are available. Best regards Michael On Oct 19, 2007, at 5:24 PM, Gi youl Kim wrote: Can you create a socket protocol which does not use Unsupported.kext? If you can't, how can you create a protocol? This email sent to michael.tuexen@lurchi.franken.de _______________________________________________ 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... I want to create a protocol which support socket interface. I could create one using net_add_proto() and net_del_proto(). But those functions are included by Unsupported.kext. And worse, some functions like sbfree() was not even exported. So I had to use codes in open xnu source to the protocol work. Aingoppa. _______________________________________________ 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/michael.tuexen% 40lurchi.franken.de This email sent to site_archiver@lists.apple.com