Previous commit didn't work; this time really fix it.

This commit is contained in:
Archie Cobbs 2000-06-30 16:38:24 +00:00
parent 9ec4c09af1
commit c38d75f43d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62290

View File

@ -51,11 +51,9 @@
#include <sys/syslog.h>
#include <sys/sysctl.h>
#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <net/radix.h>
#include <net/route.h>
@ -237,18 +235,6 @@ if_detach(ifp)
s = splnet();
if_down(ifp);
/*
* Do any type-specific detach operation
*/
switch (ifp->if_type) {
case IFT_ETHER:
if (ng_ether_detach_p != NULL)
(*ng_ether_detach_p)(ifp);
break;
default:
break;
}
/*
* Remove address from ifnet_addrs[] and maybe decrement if_index.
* Clean up all addresses.