Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2015 23:24:26 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285730 - head/sbin/pfctl
Message-ID:  <201507202324.t6KNOQbH014794@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gnn
Date: Mon Jul 20 23:24:25 2015
New Revision: 285730
URL: https://svnweb.freebsd.org/changeset/base/285730

Log:
  Only report the lack of ALTQ support if pfctl is using verbose (-v) mode.
  
  PR:		194935
  Submitted by:	Jim Thompson
  MFC after:	2 weeks

Modified:
  head/sbin/pfctl/pfctl.c

Modified: head/sbin/pfctl/pfctl.c
==============================================================================
--- head/sbin/pfctl/pfctl.c	Mon Jul 20 22:32:43 2015	(r285729)
+++ head/sbin/pfctl/pfctl.c	Mon Jul 20 23:24:25 2015	(r285730)
@@ -1924,7 +1924,7 @@ pfctl_test_altqsupport(int dev, int opts
 
 	if (ioctl(dev, DIOCGETALTQS, &pa)) {
 		if (errno == ENODEV) {
-			if (!(opts & PF_OPT_QUIET))
+			if (opts & PF_OPT_VERBOSE)
 				fprintf(stderr, "No ALTQ support in kernel\n"
 				    "ALTQ related functions disabled\n");
 			return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507202324.t6KNOQbH014794>