diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-11 14:40:58 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-11 14:40:58 +0000 |
commit | 866fc69bd8f9208577b8ac2725d227b4ff30de41 (patch) | |
tree | 77641cece26b2bd658b6d33587e9a730c6b19f05 /usr.bin/sup | |
parent | c341e62e40dcf89b30d4a2bcf64d515b776dee81 (diff) |
set/update the queue IDs on filter rules (qid and pqid) on
-DIOCCHANGERULE (just the affected rule)
-DIOCCOMMITRULES (all filter rules that get committed - one anchor or main rs)
-DIOCCOMMITALTQS (all filter rules, main set plus all anchors)
This fixes a whole bunch of issues.
previously, this was done in userland at load time. This worked fine for the
usual case, full ruleset load. It did not work inside anchors, as the queue
name <-> queue ID mapping is unknown there. Also, if the queue definitions
were changed without reloading the rules too (pfctl -A), the queue IDs on
the rules were not updated.
The three ioctls mentioned above are all entry points where the mapping is
touched.
helpful discussion with dhartmei@ and cedric@ helped verifying my approach
for this fix was right.
ok dhartmei@ cedric@
Diffstat (limited to 'usr.bin/sup')
0 files changed, 0 insertions, 0 deletions