Connection to KEXT with kern_control
Connection to KEXT with kern_control
- Subject: Connection to KEXT with kern_control
- From: Allan Hoeltje <email@hidden>
- Date: Thu, 07 Jul 2005 11:13:52 -0700
My socket woes continue.
I am attempting to open a socket from my client application to my loaded
KEXT. My client is using the sample code copied nearly verbatim from page
20 in the "Network Kernel Extensions Programming Guide".
The code successfully executes the call to socket( PF_SYSTEM, SOCK_DGRAM,
SYSPROTO_CONTROL ) and the call to ioctl() successfully obtains the dynamic
ctl_id of my loaded KEXT. However, when I make the call to connect() I get
a -1 return and errno contains: "41 Protocol wrong type for socket".
What is wrong? My search for clues turned up nothing pertaining to KEXTs.
-Allan
_______________________________________________
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