Date: Sun, 13 Sep 2009 11:45:31 +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-7@freebsd.org Subject: svn commit: r197159 - stable/7/sbin/ifconfig Message-ID: <200909131145.n8DBjVkw020148@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Sun Sep 13 11:45:31 2009 New Revision: 197159 URL: http://svn.freebsd.org/changeset/base/197159 Log: MFC r196929: Suppress an options line when no bit is on. Modified: stable/7/sbin/ifconfig/ (props changed) stable/7/sbin/ifconfig/ifgif.c Modified: stable/7/sbin/ifconfig/ifgif.c ============================================================================== --- stable/7/sbin/ifconfig/ifgif.c Sun Sep 13 11:34:33 2009 (r197158) +++ stable/7/sbin/ifconfig/ifgif.c Sun Sep 13 11:45:31 2009 (r197159) @@ -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?200909131145.n8DBjVkw020148>