diff options
author | archie <archie@FreeBSD.org> | 2000-07-14 22:35:13 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-07-14 22:35:13 +0000 |
commit | c7fb04c3319651ac810f81b2c30b3a657dcfff25 (patch) | |
tree | f2ef905b597b26449edb5592afcd09f4c02ff1e0 /sys/netgraph/ng_ether.c | |
parent | 6467d1df7100532b9bc5acab7259c47a6e9da94d (diff) | |
download | FreeBSD-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.c | 1 |
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)); |