aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2009-04-23 15:56:01 +0000
committerRobert Watson <rwatson@FreeBSD.org>2009-04-23 15:56:01 +0000
commit8bd015a1caf7a0aebe1667c8fe125a12cd3fb7bd (patch)
tree73d4030dfceae7dd50ce566066416539a8e946d6 /sys/net/if.c
parent6064c5d3623d78ce57fe1be9de9e613953534ce1 (diff)
downloadsrc-8bd015a1caf7a0aebe1667c8fe125a12cd3fb7bd.tar.gz
src-8bd015a1caf7a0aebe1667c8fe125a12cd3fb7bd.zip
Notes
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 991f8808ff0c..5c2e22420f81 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1799,7 +1799,8 @@ ifunit_ref(const char *name)
IFNET_RLOCK();
TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
- if (strncmp(name, ifp->if_xname, IFNAMSIZ) == 0)
+ if (strncmp(name, ifp->if_xname, IFNAMSIZ) == 0 &&
+ !(ifp->if_flags & IFF_DYING))
break;
}
if (ifp != NULL)