Call bpfdetach() before going away.

This commit is contained in:
Archie Cobbs 2000-03-21 01:42:56 +00:00
parent 5431b20654
commit 382379f8a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58412

View file

@ -765,6 +765,7 @@ ng_iface_rmnode(node_p node)
ng_cutlinks(node);
ng_unname(node);
bpfdetach(priv->ifp);
if_detach(priv->ifp);
priv->ifp = NULL;
ng_iface_free_unit(priv->unit);