]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bsnmp: Fix incorrect use of libpfctl
authorKristof Provost <kp@FreeBSD.org>
Tue, 15 Jun 2021 08:50:32 +0000 (10:50 +0200)
committerKristof Provost <kp@FreeBSD.org>
Tue, 22 Jun 2021 21:00:33 +0000 (23:00 +0200)
commita20c597c6d73a305126108eeacb5a2f4355ce6af
treefe5e65d749e2709c8c8aee32583accac6ec565c8
parenta7ade2196244fa21bdee913fb9448d07e9f3760c
bsnmp: Fix incorrect use of libpfctl

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().

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

(cherry picked from commit 67cef6d411cef0c3dfcf768ff890b4f97cf513b6)
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c