>Synopsis: pfctl allows for invalid queue syntax in pf.conf
>Category: user amd64
>Environment:
System : OpenBSD 5.9
Details : OpenBSD 5.9 (GENERIC.MP) #1: Thu Feb 4 16:29:22 UTC 2016
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
It is possible to produce a pf.conf file that seems to validate
(specifically
with respect to queuing), but throws "pfctl: DIOCGETQSTATS: Bad file
descriptor"
when "pfctl -s queue" is run.
>How-To-Repeat:
Create a minimal pf.conf and use "queue test on egress bandwidth 1M
default" in
the queue section. "pfctl -f /etc/pf.conf" will pass, but "pfctl -s
queue" will
then throw "pfctl: DIOCGETQSTATS: Bad file descriptor".
>Fix:
Change "egress" to an interface (eg. em0) or macro for the iface.