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
F136587671: D34131.id102222.diff
Tue, Nov 18, 11:38 AM
Unknown Object (File)
Tue, Nov 18, 10:56 AM
Unknown Object (File)
Tue, Nov 18, 1:51 AM
Unknown Object (File)
Mon, Nov 17, 11:06 PM
Unknown Object (File)
Mon, Nov 17, 9:16 PM
Unknown Object (File)
Mon, Nov 17, 8:20 PM
Unknown Object (File)
Mon, Nov 17, 2:48 PM
Unknown Object (File)
Sun, Nov 16, 7:41 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