X: USB enet driver, unplugging problems
X: USB enet driver, unplugging problems
- Subject: X: USB enet driver, unplugging problems
- From: Jen Beaven <email@hidden>
- Date: Mon, 22 Apr 2002 10:51:06 -0400
I'm writing a driver for a USB DSL modem looking like an ethernet
device. It's fine if it's only plugged in once, but if it's unplugged
the stop method is never called, ifconfig still shows the device UP,
and I've tried all kinds of ways to get the device unregistered (or
even just set the link to DOWN) with absolutely no effect.
My terminate method does get called, so I've done some experimenting
there; besides the obvious (setLinkStatus) I've tried detaching the
interface, overriding IOEthernetInterface so I can do a
setInterfaceState (as suggested somewhere on one of these lists), and
finding the IONetworkStack and telling _it_ to terminate the
interface (the command returns 0 but nothing happens.) None of these
things set the link to "not up" (according to ifconfig.)
I'd thought of registering the interface as soon as the driver is
loaded once (whether or not for my device), then keeping it around
and just re-using it, but each plug-in of the device gets a new
instance of my class, so that's no good. Is this something I could do
with two kexts, one for my driver and one that just holds the
interface info?
Has anyone got a solution that works? (elegant or otherwise :-)
tia
/jen
--
Jen Beaven
http://www.houseofc.com ...today it's "House of Chaos"
_______________________________________________
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.