Network Protocol NKEs
Network Protocol NKEs
- Subject: Network Protocol NKEs
- From: Simon Connah <email@hidden>
- Date: Sun, 8 Nov 2009 15:57:40 +0000
Hi,
I wasn't entirely sure if this message would be better in the
networking list or this one, but since it is a kernel question I
decided on this one.
I've been reading the kernel programming guide and the NKE guide with
the intention of adding support in Mac OS X for a network protocol
which is built on top of UDP.
But having done this I am little confused about something. From what I
have read it sounds like a protocol plumber is what I am after. So I
did some reading and immediately hit a problem, for instance
proto_register_plumber() takes a proto_family_t as its first argument
which from reading the description in the reference is a u_int32_t and
relates to the protocol family your functions will handle.
Yet I can't find where the protocol is actually defined in the
headers. I've looking in net/kpi_interface.h net/
kpi_interfacefilters.h and net/kpi_protocol.h which seem to be the
relevant headers but I have had no luck. From reading some of the
comments though it seems that 0 means pass all packets from any
protocol family to the protocol plumber and I assume 1 is either TCP
or UDP but it doesn't say which one is which. Can someone point me to
the right header file or page on ADC as I've been looking for ages now.
Thanks for any help.
Simon.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden