]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libpfctl: Fix u_* counters
authorKristof Provost <kp@FreeBSD.org>
Thu, 8 Apr 2021 08:36:18 +0000 (10:36 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 7 May 2021 08:16:02 +0000 (10:16 +0200)
commit75ca6ff7d68753f8c21244c2fdf1d13cb8fb09e1
treea05085e572f4ccc1e8453717dd22c59aff530526
parente055cd8e7a2c6ba5a96ec095290ad4893bb38f88
libpfctl: Fix u_* counters

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.

Reviewed by: glebius
MFC after: 4 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D29645

(cherry picked from commit ab5707a5cf86ed66dbd11e03ad9676766da9a47b)
lib/libpfctl/libpfctl.c
lib/libpfctl/libpfctl.h
sbin/pfctl/pfctl.c