bin/118987: ifconfig(8): ifconfig -l (address_family) does not
work correctly on RELENG-7
Krassimir Slavchev
krassi at bulinfo.net
Mon Feb 2 00:19:55 PST 2009
-----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 at 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-----
More information about the freebsd-net
mailing list