HomeFreeBSD

pf: fix the "keepcounters" to stop truncating to 32-bit

Description

pf: fix the "keepcounters" to stop truncating to 32-bit

The machinery to support 64-bit counters even on 32-bit kernels had a
bug where it would unitentionally truncate the value back to 32-bits
when transferring to a new counter. This resulted in buggy be behavior
on 64-bit kernels as well.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
mjgAuthored on Thu, Jun 20, 5:48 PM
Parents
rG3beb43dd4f87: callout: assert that callout_init_*lock* functions are called with a lock
Branches
Unknown
Tags
Unknown