diff options
| author | Brian Feldman <green@FreeBSD.org> | 2004-01-09 00:41:45 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2004-01-09 00:41:45 +0000 |
| commit | 018df1c369d0fd5c07b03469b5b5e9b311017dc6 (patch) | |
| tree | 83296879436ee555bf1c6c7d760ea98675c10f22 /sys/netgraph | |
| parent | 07eacae0d215bdb9ddc72236d92f89e65919ad11 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph')
| -rw-r--r-- | sys/netgraph/ng_ether.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index b1756d0a6549..b741b07faf42 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -597,10 +597,6 @@ ng_ether_shutdown(node_p node) { const priv_p priv = NG_NODE_PRIVATE(node); - if (priv->promisc) { /* disable promiscuous mode */ - (void)ifpromisc(priv->ifp, 0); - priv->promisc = 0; - } if (node->nd_flags & NG_REALLY_DIE) { /* * WE came here because the ethernet card is being unloaded, @@ -613,6 +609,10 @@ ng_ether_shutdown(node_p node) NG_NODE_UNREF(node); /* free node itself */ return (0); } + if (priv->promisc) { /* disable promiscuous mode */ + (void)ifpromisc(priv->ifp, 0); + priv->promisc = 0; + } priv->autoSrcAddr = 1; /* reset auto-src-addr flag */ node->nd_flags &= ~NG_INVALID; /* Signal ng_rmnode we are persisant */ return (0); |
