aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2024-03-23 06:31:51 +0000
committerKristof Provost <kp@FreeBSD.org>2024-04-29 14:32:23 +0000
commit5824df8d991c32def616c51994161e60e5b78948 (patch)
treedbe454df47fdc265a716e4960cfe0b9b1cdc6aba /sbin
parent044243fcc9b4c639cf5655e37b98478bcb312590 (diff)
downloadsrc-5824df8d991c32def616c51994161e60e5b78948.tar.gz
src-5824df8d991c32def616c51994161e60e5b78948.zip
pf: convert DIOCGETSTATUS to netlink
Introduce pfctl_get_status_h() because we need the pfctl_handle. In this variant use netlink to obtain the information. Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 8d59871701f8..17901b04a130 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1578,7 +1578,7 @@ pfctl_show_status(int dev, int opts)
struct pfctl_status *status;
struct pfctl_syncookies cookies;
- if ((status = pfctl_get_status(dev)) == NULL) {
+ if ((status = pfctl_get_status_h(pfh)) == NULL) {
warn("DIOCGETSTATUS");
return (-1);
}
@@ -1600,7 +1600,7 @@ pfctl_show_running(int dev)
struct pfctl_status *status;
int running;
- if ((status = pfctl_get_status(dev)) == NULL) {
+ if ((status = pfctl_get_status_h(pfh)) == NULL) {
warn("DIOCGETSTATUS");
return (-1);
}