Return time_uptime as value for when pf was enabled instead of
authorpatrick <patrick@openbsd.org>
Thu, 1 Jun 2017 14:38:28 +0000 (14:38 +0000)
committerpatrick <patrick@openbsd.org>
Thu, 1 Jun 2017 14:38:28 +0000 (14:38 +0000)
commit63b24bda997b0879d685c1d16ba2d37acb62bdf2
tree98852e676a567ccb0415706c0e25cd393c19844c
parentc7ca4e5851281dba483e97ff5f0b6f865cef4127
Return time_uptime as value for when pf was enabled instead of
time_second.  Since time_second changes depending on the wall-
clock time, time_second is not a reliable source for the status.
We can even end up with a negative time delta.  Thus, use the
monotonically growing time_uptime and export it to userland.

ok bluhm@ mikeb@
sbin/pfctl/pfctl_parser.c
sys/net/pf_ioctl.c
usr.bin/systat/pf.c
usr.sbin/snmpd/mib.c