summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorweongyo <weongyo@FreeBSD.org>2010-12-01 03:24:38 +0000
committerweongyo <weongyo@FreeBSD.org>2010-12-01 03:24:38 +0000
commitbc2682b97b76f566f657795f57da6991d671a208 (patch)
tree8301da78a34d78d825cc7440625e5410fffcd1ba /sbin
parent7f0ccdf947fabcfc0c34dffe169de18e4ee3aa1f (diff)
downloadFreeBSD-src-bc2682b97b76f566f657795f57da6991d671a208.zip
FreeBSD-src-bc2682b97b76f566f657795f57da6991d671a208.tar.gz
Don't print usbus[0-9] interfaces that it's not the interesting
interface type for ifconfig(8).
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/ifconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 8abe82b..e4292da 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -295,6 +295,8 @@ main(int argc, char *argv[])
sdl = (const struct sockaddr_dl *) ifa->ifa_addr;
else
sdl = NULL;
+ if (sdl != NULL && sdl->sdl_type == IFT_USB)
+ continue;
if (cp != NULL && strcmp(cp, ifa->ifa_name) == 0 && !namesonly)
continue;
iflen = strlcpy(name, ifa->ifa_name, sizeof(name));
OpenPOWER on IntegriCloud