Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Socket protocol which does not use Unsupported.kext



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:

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.


Can you create a socket protocol which does not use Unsupported.kext?
If you can't, how can you create a protocol?

Aingoppa.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/michael.tuexen% 40lurchi.franken.de


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden
References: 
 >Socket protocol which does not use Unsupported.kext (From: Gi youl Kim <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.