Date: Mon, 02 Feb 2009 09:54:03 +0200 From: Krassimir Slavchev <krassi@bulinfo.net> To: vwe@FreeBSD.org Cc: freebsd-net@FreeBSD.org Subject: Re: bin/118987: ifconfig(8): ifconfig -l (address_family) does not work correctly on RELENG-7 Message-ID: <4986A69B.3030505@bulinfo.net> In-Reply-To: <200901311033.n0VAXr6R037246@freefall.freebsd.org> References: <200901311033.n0VAXr6R037246@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, A few days after filling this PR I received a patch from someone (I will search in my inbox). Here is the patch: - --- /usr/src/sbin/ifconfig/ifconfig.c 2007-12-26 23:25:17.000000000 +0300 +++ /tmp/ifconfig.c 2007-12-26 23:18:53.000000000 +0300 @@ -298,9 +298,12 @@ * Are we just listing the interfaces? */ if (namesonly) { - - if (ifindex > 1) - - printf(" "); - - fputs(name, stdout); + if (afp == NULL || afp->af_af != AF_LINK || + sdl->sdl_type == IFT_ETHER) { + if (ifindex > 1) + printf(" "); + fputs(name, stdout); + } continue; } vwe@FreeBSD.org wrote: > Synopsis: ifconfig(8): ifconfig -l (address_family) does not work correctly on RELENG-7 > > State-Changed-From-To: open->analyzed > State-Changed-By: vwe > State-Changed-When: Sat Jan 31 10:31:59 UTC 2009 > State-Changed-Why: > Will has created a patch for evaluation > > http://www.freebsd.org/cgi/query-pr.cgi?pr=118987 > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFJhqabxJBWvpalMpkRApX6AJ99RNjokukUJoMpPDnDP1oujnQtyQCgknjO 9HrHjtuCvpZ9uVjV/Djw8KU= =nMYy -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4986A69B.3030505>