]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Add per-rule timestamps for rule and eth_rule
authorReid Linnemann <rlinnemann@netgate.com>
Fri, 22 Apr 2022 11:54:51 +0000 (13:54 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 22 Apr 2022 17:53:20 +0000 (19:53 +0200)
commit0abcc1d2d33aef2333dab28e1ec1858cf45b314a
tree7a3557fa14e5da6a6a90baa08dd795bd91dd9c1c
parent1452bfcd9bbcb2f5bbb89fa38d01ce51dd9b6d44
pf: Add per-rule timestamps for rule and eth_rule

Similar to ipfw rule timestamps, these timestamps internally are
uint32_t snaps of the system time in seconds. The timestamp is CPU local
and updated each time a rule or a state associated with a rule or state
is matched.

Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D34970
lib/libpfctl/libpfctl.c
lib/libpfctl/libpfctl.h
sbin/pfctl/pfctl.c
sys/net/pfvar.h
sys/netpfil/pf/pf.c
sys/netpfil/pf/pf_ioctl.c
sys/netpfil/pf/pf_nv.c