summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ether.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-07-14 22:35:13 +0000
committerarchie <archie@FreeBSD.org>2000-07-14 22:35:13 +0000
commitc7fb04c3319651ac810f81b2c30b3a657dcfff25 (patch)
treef2ef905b597b26449edb5592afcd09f4c02ff1e0 /sys/netgraph/ng_ether.c
parent6467d1df7100532b9bc5acab7259c47a6e9da94d (diff)
downloadFreeBSD-src-c7fb04c3319651ac810f81b2c30b3a657dcfff25.zip
FreeBSD-src-c7fb04c3319651ac810f81b2c30b3a657dcfff25.tar.gz
Set NG_INVALID flag when destroying node.
Diffstat (limited to 'sys/netgraph/ng_ether.c')
-rw-r--r--sys/netgraph/ng_ether.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c
index 6984d1a..86a4dcb 100644
--- a/sys/netgraph/ng_ether.c
+++ b/sys/netgraph/ng_ether.c
@@ -287,6 +287,7 @@ ng_ether_detach(struct ifnet *ifp)
if (node == NULL) /* no node (why not?), ignore */
return;
ng_rmnode(node); /* break all links to other nodes */
+ node->flags |= NG_INVALID;
IFP2NG(ifp) = NULL; /* detach node from interface */
priv = node->private; /* free node private info */
bzero(priv, sizeof(*priv));
OpenPOWER on IntegriCloud