Page MenuHomeFreeBSD

pfctl: pfctl_get_astats() doesn't set errno
ClosedPublic

Authored by markj on Jun 16 2026, 2:21 PM.
Tags
None
Referenced Files
F174769994: D57608.id179882.diff
Mon, Oct 5, 9:30 PM
F174725941: D57608.id.diff
Mon, Oct 5, 12:53 PM
Unknown Object (File)
Sat, Oct 3, 2:16 PM
Unknown Object (File)
Sat, Oct 3, 4:20 AM
Unknown Object (File)
Fri, Oct 2, 5:53 PM
Unknown Object (File)
Fri, Oct 2, 2:12 PM
Unknown Object (File)
Wed, Sep 30, 7:46 PM
Unknown Object (File)
Tue, Sep 29, 9:16 AM
Subscribers

Details

Summary

After commit 08f54dfca197 pfctl_get_astats() doesn't set errno anymore,
except in one place. Fix up that one place and adjust callers
appropriately.

Fixes: 08f54dfca197 ("pf: convert DIOCRGETASTATS to netlink")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable