Author: ume
Date: Sun Sep 13 11:31:25 2009
New Revision: 197157
URL: http://svn.freebsd.org/changeset/base/197157
Log:
MFC r196929: Suppress an options line when no bit is on.
Approved by: re (kib)
Modified:
stable/8/sbin/ifconfig/ (props changed)
stable/8/sbin/ifconfig/ifgif.c
Modified: stable/8/sbin/ifconfig/ifgif.c
==============================================================================
--- stable/8/sbin/ifconfig/ifgif.c Sun Sep 13 11:20:17 2009
(r197156)
+++ stable/8/sbin/ifconfig/ifgif.c Sun Sep 13 11:31:25 2009
(r197157)
@@ -71,6 +71,8 @@ gif_status(int s)
ifr.ifr_data = (caddr_t)&opts;
if (ioctl(s, GIFGOPTS, &ifr) == -1)
return;
+ if (opts == 0)
+ return;
printf("\toptions=%d<", opts);
for (i=0; i < sizeof(gif_opts)/sizeof(gif_opts[0]); i++) {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"