site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -josh On Nov 1, 2009, at 5:37 PM, Godfrey van der Linden wrote: Following the steps of the documentation. 1> Load the IOKit kext 2> ifconfig en2 inet 192.168.1.2 netmask 255.255.255.0 up 3> arp it on both machines 4> Do some test, then... 5> ipconfig set en2 NONE 6> kextunload ... Fails still has references 7> ifconfig -a (Still shows an active en2 interface?) This looks like a bug in Snow Leopard? Godfrey _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/jgraessley%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This may be caused by the IP protocol still being attached to the ethernet interface. When you run ifconfig en2 inet... and an IP address is attached to the interface, that implicitly attaches IP to the ethernet interface. If you instead set up a network service for the interface using the network preferences to assign the address, and then disable that service to remove the address, the ip configuration plug-in will perform an explicit attach when assigning the address and an explicit detach when you disable that service. That explicit protocol detach is the key to getting the interface to unload cleanly. Alternatively, you could write a command line tool to send the ioctl to detach the IP protocol from the ethernet interface. I can't recall the name of the ioctl. The protocol isn't automatically detached from the interface when the last address is removed for obscure reasons. So there is a reason, I just can't recall what it is or whether or not it's a good reason. While trying to debug a USB network kext I find that I can't unload as the dlil isn't being destroyed. Steps to reproduce (using a pegasus USB enet, but the same steps are reproducable with the Air's ENET dongle) Nothing I do will unload the kext even thought this is the documented techniques described in http://developer.apple.com/mac/library/documentation/DeviceDrivers/Conceptua... This email sent to jgraessley@apple.com This email sent to site_archiver@lists.apple.com