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

PR:		194935
Submitted by:	Jim Thompson
MFC after:	2 weeks
This commit is contained in:
George V. Neville-Neil 2015-07-20 23:24:25 +00:00
parent 9b3df93bf1
commit a413464757

View File

@ -1924,7 +1924,7 @@ pfctl_test_altqsupport(int dev, int opts)
if (ioctl(dev, DIOCGETALTQS, &pa)) { if (ioctl(dev, DIOCGETALTQS, &pa)) {
if (errno == ENODEV) { if (errno == ENODEV) {
if (!(opts & PF_OPT_QUIET)) if (opts & PF_OPT_VERBOSE)
fprintf(stderr, "No ALTQ support in kernel\n" fprintf(stderr, "No ALTQ support in kernel\n"
"ALTQ related functions disabled\n"); "ALTQ related functions disabled\n");
return (0); return (0);