Page MenuHomeFreeBSD

bsnmp: Fix incorrect use of libpfctl
ClosedPublic

Authored by kp on Jun 15 2021, 12:09 PM.
Tags
None
Referenced Files
F166308341: D30770.id.diff
Wed, Aug 12, 7:41 PM
F166306945: D30770.id90912.diff
Wed, Aug 12, 7:28 PM
Unknown Object (File)
Mon, Aug 10, 8:51 AM
Unknown Object (File)
Sun, Aug 9, 4:22 PM
Unknown Object (File)
Sat, Aug 8, 2:25 AM
Unknown Object (File)
Sat, Aug 8, 2:21 AM
Unknown Object (File)
Mon, Aug 3, 5:16 PM
Unknown Object (File)
Sun, Aug 2, 1:44 AM
Subscribers

Details

Reviewers
donner
Group Reviewers
network
pfsense
Summary

When we introduced libpfctl in bnsmpd this was done incorrectly, and a
GETRULE call was replaced by pfctl_add_rule().
Change it to pfctl_get_rule().

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39915
Build 36804: arc lint + arc unit

Event Timeline

kp requested review of this revision.Jun 15 2021, 12:09 PM
donner added a subscriber: donner.

How could this happen?

This revision is now accepted and ready to land.Jun 15 2021, 1:20 PM

How could this happen?

Probably I got distracted doing these modifications, and didn't spot it when I committed.
We don't currently have any tests for the pf snmp module. Those would hopefully have caught it. Instead we wound up catching it during Netgate testing.