Page MenuHomeFreeBSD

libpfctl: Fix u_* counters
ClosedPublic

Authored by kp on Apr 8 2021, 12:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 12:02 AM
Unknown Object (File)
Sat, Oct 11, 9:21 AM
Unknown Object (File)
Sat, Oct 11, 9:21 AM
Unknown Object (File)
Sat, Oct 11, 9:21 AM
Unknown Object (File)
Sat, Oct 11, 1:46 AM
Unknown Object (File)
Fri, Oct 3, 4:39 AM
Unknown Object (File)
Sun, Sep 28, 6:47 PM
Unknown Object (File)
Tue, Sep 16, 5:25 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