diff options
author | weongyo <weongyo@FreeBSD.org> | 2010-12-01 03:24:38 +0000 |
---|---|---|
committer | weongyo <weongyo@FreeBSD.org> | 2010-12-01 03:24:38 +0000 |
commit | bc2682b97b76f566f657795f57da6991d671a208 (patch) | |
tree | 8301da78a34d78d825cc7440625e5410fffcd1ba /sbin/ifconfig/ifconfig.c | |
parent | 7f0ccdf947fabcfc0c34dffe169de18e4ee3aa1f (diff) | |
download | FreeBSD-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/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 2 |
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)); |