missing mbuf_len at load time
missing mbuf_len at load time
- Subject: missing mbuf_len at load time
- From: Chris Neustrup <email@hidden>
- Date: Fri, 22 Feb 2008 14:46:39 -0800
I'm building an ethernet controller device driver that needs to implement outputPacket(), overloaded from IONetworkController. In order to manipulate the packet pointed to by mbuf_t *, I've invoked mbuf_len to check the length of the data. xcode can find the declaration in kpi_mbuf.h, but the linker can't find it at kext load time. I'm running 10.4.10, which has worked fine until now. By the message, the linker is expecting c++ linkage: __Z8mbuf_lenP6__mbuf
Thanks in advance, Chris
snippet...
UInt32 xgg::outputPacket( mbuf_t packet, void * param ) { size_t mlen = mbuf_len(packet); IOLog("xgg::outputPacket mbuf data len %d\n", mlen);
return kIOReturnSuccess; }
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden