Issue regarding IP setting for a virtual network adapter on macintosh.
Issue regarding IP setting for a virtual network adapter on macintosh.
- Subject: Issue regarding IP setting for a virtual network adapter on macintosh.
- From: <email@hidden>
- Date: Fri, 30 Jan 2004 17:42:33 +0530
- Thread-topic: Issue regarding IP setting for a virtual network adapter on macintosh.
Hi,
I am facing an issue regarding IP setting on Mac OS X - 10.2.7 from my
driver code in kernel mode.
Issue:
Is there a way of setting the IP of a virtual network adapter from the
driver code in the kernel mode and not from the user mode?
Details:
I have a Ethernet over USB driver which creates a virtual network
adapter on connecting the device to the host system. This driver is in
similar grounds to the Apple driver "USBCDCEthernet"
<
http://developer.apple.com/samplecode/Sample_Code/Networking/USBCDCEthe
rnet.htm>
(
http://developer.apple.com/samplecode/Sample_Code/Networking/USBCDCEthe
rnet.htm)
Once the device is plugged in and enumerated, a virtual adapter is
created on the host system and I need to set the IP for the device on
connection itself without user intervention.
I am trying to set the IP from the driver code in which I call the
method performCommand( ) with the appropriate parameters one of which is
the ifnet structure.
The driver class is inherited from IOEthernetController and as the
method performCommand( ) is a protected member of IOEthernetInterface
class, I created a class which inherits from IOEthernetInterface and
inside this class I have a public function (SetIPAddress( )) which calls
the method performCommand( ). The function SetIPAddress( ) is called
from the driver code.
The issue i am facing is that the system crashes on executing the
performCommand( ) method in the driver code.
I am not sure whether this approach appropriate.
Please let me know if there is a way in which i can set the IP for my
virtual nework adapter on the host system from the driver code.
thanks and regards
huzefa
Confidentiality Notice
The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
email@hidden immediately
and destroy all copies of this message and any attachments.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.