Re: Kernel Extensions for iPhone
Re: Kernel Extensions for iPhone
- Subject: Re: Kernel Extensions for iPhone
- From: Peter Sichel <email@hidden>
- Date: Thu, 13 Mar 2008 09:32:48 -0400
On Mar 12, 2008, at 4:25 PM, Andre-John Mas wrote:
Hopefully Apple will enable this, but it doesn't look as though
there's any way to do this commercially (although you might be able
do
it yourself, on a jailbroken phone).
I wonder whether a compromise could be made here, in that we could ask
Apple to create a lightweight kernel extension, that would allow the
rest of the work to be done in user-space.
That's tricky because the resource overhead of doing it this way
is so much higher. A modest NKE adds some code when packets traverse
the network stack. Diverting packets out of the kernel, processing
them in a daemon, and then re-injecting back to the kernel is
a huge amount of overhead.
If the iPhone were just another OS X device, you could use
an ipfw divert socket along with UNIX natd like Apple's
existing Internet Sharing feature. The beauty of using an
NKE is you can have a preference panel like app to configure
it, and then get out of the way. [This is how my own
IPNetRouterX works.]
- Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden