summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-06-30 16:38:24 +0000
committerarchie <archie@FreeBSD.org>2000-06-30 16:38:24 +0000
commit44cc50998624b8e1c38a63c2f87c5c98b93de53d (patch)
treea458a30d6fa827fbd84419742d3d1d8f7fea9691 /sys/net
parent4667587f8c7d9fcb552f3437477a10f79aa28ea8 (diff)
downloadFreeBSD-src-44cc50998624b8e1c38a63c2f87c5c98b93de53d.zip
FreeBSD-src-44cc50998624b8e1c38a63c2f87c5c98b93de53d.tar.gz
Previous commit didn't work; this time really fix it.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index ba316a9..2dce111 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -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>
@@ -238,18 +236,6 @@ if_detach(ifp)
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.
*/
OpenPOWER on IntegriCloud