Page MenuHomeFreeBSD

libpfctl: Fix u_* counters
ClosedPublic

Authored by kp on Apr 8 2021, 12:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 12:02 AM
Unknown Object (File)
Mon, Dec 9, 1:51 AM
Unknown Object (File)
Wed, Dec 4, 1:01 PM
Unknown Object (File)
Nov 12 2024, 4:48 AM
Unknown Object (File)
Nov 12 2024, 4:48 AM
Unknown Object (File)
Nov 12 2024, 4:16 AM
Unknown Object (File)
Oct 22 2024, 1:50 PM
Unknown Object (File)
Oct 22 2024, 1:50 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