svn commit: r216089 - head/sbin/ifconfig
Weongyo Jeong
weongyo at FreeBSD.org
Wed Dec 1 03:24:39 UTC 2010
Author: weongyo
Date: Wed Dec 1 03:24:38 2010
New Revision: 216089
URL: http://svn.freebsd.org/changeset/base/216089
Log:
Don't print usbus[0-9] interfaces that it's not the interesting
interface type for ifconfig(8).
Modified:
head/sbin/ifconfig/ifconfig.c
Modified: head/sbin/ifconfig/ifconfig.c
==============================================================================
--- head/sbin/ifconfig/ifconfig.c Tue Nov 30 22:39:46 2010 (r216088)
+++ head/sbin/ifconfig/ifconfig.c Wed Dec 1 03:24:38 2010 (r216089)
@@ -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));
More information about the svn-src-all
mailing list