Once you have enabled IP communication on a device using ifconfig, the IP protocol is attached to your driver inside the kernel’s networking stack. (See Network Kernel Extensions Programming Guide for more information about the networking stack.) Once a protocol is attached, your driver cannot be unloaded until you detach the protocol.
To detach the IP protocol from your network device, you can issue the following command from the command line:
ipconfig set en1 NONE |
Substitute the appropriate interface name instead of en1, of course. This will disable IP networking for the interface. You can then unload the driver KEXT using kextunload.
For more information, see the manual pages for ipconfig(8) and kextunload(8).
Last updated: 2008-03-11