Re: Using SystemConfiguration API inside KEXT
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:content-transfer-encoding :message-id:references:to:x-mailer; bh=zA6m3mjaE18FeTLaHkrPe4IoZhQk9V6b8e++cHbCyxc=; b=w7jqWx08PuuuVs7ILAvmGY3J77ORCFwhRx7knJ76UiQ3oGVQtGLNuxj6zAHLLIN9tj vvSJ7hPDnjyHQJenKND1Mix43da649D4nPXfBxFsY+TE6er4JBTd9EeMJtMW2jxGkhv+ 6z1KJJ+aJImrQvc7V4ynFKQHtrIAZTd2OrF/w= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=POgmikU55zB4ZodHNnnytIRDEPaMdW1wpQiRBi+8QSsypLyFQcLKP06a/OX9lpOL56 2dktDffN7ro6aNZr+R30poE/iYuf8Qad72swiVWAXdANLsvO31YIyXKYRE37yLGxpHLn tW7jlS18gzEXJbbqZe7VDphUEOlAEaGzbrDF8= On May 11, 2010, at 9:11 AM, Andy Huang wrote:
Hi,
I am developing a NKE. Now I need to call SystemConfiguration framework API to find primary interface. When I tried to include <SystemConfiguration/SystemConfiguration.h>, I always get compiliation error saying not able to find the header file. Any ideas? TIA.
Andy, SystemConfiguration is not available for kernel extensions directly. If you MUST do this, the common workaround is to have a separate user-space daemon that gets/sets whatever you need as a proxy for the kernel extension. Of course, I am leaving the work of coordinating the kext and the daemon as an trivial exercise for the reader... Same goes for your other question about the primary networking interface. Eli _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Eli Bach