Page MenuHomeFreeBSD

pf: deal with tables gaining or losing counters
ClosedPublic

Authored by kp on Feb 1 2022, 5:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 4, 6:53 PM
Unknown Object (File)
Wed, Mar 4, 6:52 PM
Unknown Object (File)
Tue, Feb 24, 5:41 PM
Unknown Object (File)
Mon, Feb 23, 9:11 AM
Unknown Object (File)
Feb 22 2026, 1:50 PM
Unknown Object (File)
Jan 26 2026, 6:38 PM
Unknown Object (File)
Jan 25 2026, 4:49 AM
Unknown Object (File)
Dec 24 2025, 3:40 PM

Details

Summary

When we create a table without counters, add an entry and later
re-define the table to have counters we wound up trying to read
non-existent counters.

We now cope with this by attempting to add them if needed, removing them
when they're no longer needed and not trying to read from counters that
are not present.

MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable