Date: Sun, 13 Sep 2009 11:31:25 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r197157 - stable/8/sbin/ifconfig Message-ID: <200909131131.n8DBVPuh019740@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909131131.n8DBVPuh019740>