detaching ethernet interfaces..
detaching ethernet interfaces..
- Subject: detaching ethernet interfaces..
- From: Andrew Gallatin <email@hidden>
- Date: Fri, 25 Jan 2002 15:53:28 -0500 (EST)
Is it possible to detach an ethernet interface in 10.1 / Darwin 1.4
after it has been ifconfig'ed up? (and down again)
Eg, looking at the source code for ether_attach_inet, I see:
/* XXX avoid free'ing the interface */
ifp->if_eflags |= IFEF_DETACH_DISABLED;
I don't see IFEF_DETACH_DISABLED being cleared anywhere. So it looks
as though an interface becomes unloadable once its been configured.
Is this true? Why??
Thanks,
Drew