Page MenuHomeFreeBSD

libpfctl: Fix u_* counters
ClosedPublic

Authored by kp on Apr 8 2021, 12:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 17, 4:13 AM
Unknown Object (File)
Thu, Apr 16, 9:42 AM
Unknown Object (File)
Thu, Apr 16, 2:58 AM
Unknown Object (File)
Mon, Apr 13, 3:03 AM
Unknown Object (File)
Thu, Apr 9, 2:56 PM
Unknown Object (File)
Tue, Apr 7, 3:01 PM
Unknown Object (File)
Mon, Apr 6, 7:21 AM
Unknown Object (File)
Sun, Apr 5, 2:55 PM
Subscribers

Details

Summary

struct pf_rule had a few counter_u64_t counters. Those couldn't be
usefully comminicated with userspace, so the fields were doubled up in
uint64_t u_* versions.

Now that we use struct pfctl_rule (i.e. a fully userspace version) we
can safely change the structure and remove this wart.

MFC after: 4 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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