summaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2000-06-29 19:14:28 +0000
committerArchie Cobbs <archie@FreeBSD.org>2000-06-29 19:14:28 +0000
commit6ec86086e7b1fc46e667f30d76d9e5443e287f1c (patch)
treeaa8fb43bc6ad0a0aea56fd3367082aa441127e4b /sys/net/if.c
parent6b709b74ae2ff7497e0e7b860dbc300bc61bf315 (diff)
Notes
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index e33e86c064a5..ba316a996ba3 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -51,6 +51,7 @@
#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>
@@ -241,7 +242,8 @@ if_detach(ifp)
*/
switch (ifp->if_type) {
case IFT_ETHER:
- ether_ifdetach(ifp);
+ if (ng_ether_detach_p != NULL)
+ (*ng_ether_detach_p)(ifp);
break;
default:
break;