MFC 285730

Only report the lack of ALTQ support if pfctl is using verbose (-v) mode.

PR:		194935
Submitted by:	Jim Thompson
Approved by: re (gjb)
This commit is contained in:
gnn 2016-03-03 23:25:31 +00:00
parent 2667c3d5fb
commit a80787b3cf

View File

@ -1930,7 +1930,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);