Page MenuHomeFreeBSD

pf: Fix timestamps in source node export to userspace
Needs ReviewPublic

Authored by vegeta_tuxpowered.net on Mon, Oct 28, 10:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 11:03 PM
Unknown Object (File)
Sat, Nov 2, 11:31 AM
Unknown Object (File)
Sat, Nov 2, 9:11 AM
Unknown Object (File)
Fri, Nov 1, 6:29 PM
Unknown Object (File)
Fri, Nov 1, 6:24 PM

Details

Reviewers
kp
Summary

Pfctl expects SN's creation and expiry to not be absolute timestamps but time deltas.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Good catch, although I think we need to fix nlattr_add_pf_threshold() as well.

It might be slightly better to save time_uptime to a separate variable first, because we don't want it to change in between calculations.

I'm going to make you commit this one yourself, once it's ready.