Re: Missing Kernel Header Files
You can find a discussion of this fascinating subject in the archives for this list or the darwin-development list. Short answer: get the files you want from the CVS repository, making sure you check out with a tag that matches your kernel [uname -a; "xnu" -> "Apple"]. Regards, Justin On Thursday, November 7, 2002, at 02:16 PM, Michael Cashwell wrote: Greetings, I've got an NKE using a PF_SYSTEM / SYSPROTO_EVENT socket for network kernel events. I'm interested in both KEV_DL_SUBCLASS and KEV_INET_SUBCLASS. (My goal is to be notified of network interfaces coming and going and media and IP address changes.) The former is found in net/if.h but the latter is in the xnu sources in netinet/in_var.h which doesn't exist in the version A kernel headers. The same thing seems to be true for KEV_INET6_SUBCLASS in netinet6/in6_var.h and KEV_ATALK_SUBCLASS in netat/at_var.h. These headers also define matching event structs which I need to interpret the event messages, so it's more than just simple defines that are missing. Were these files deliberately left out of the framework headers? Should I not be using them? If not then I'm faced with either copying them from xnu into the framework headers (a pain to have to do on each development system) or copy them in as a source file in my project (a risk that a future update will add them to the framework and I'll then be using old ones). Neither is ideal. What have others done in this situation? Also, if it was an oversight is a bug report the correct way to get them added to the kernel framework in a future release? Thanks, Mike _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored. -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | It's not whether you win or lose... | It's whether *I* win or lose. *--------------------------------------*-------------------------------* _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Justin C. Walker