Page MenuHomeFreeBSD

sbin/sysctl: Fix CTLFLAG_SKIP for adjacent nodes
ClosedPublic

Authored by freqlabs on Jan 26 2021, 8:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 15, 1:59 AM
Unknown Object (File)
Feb 22 2025, 10:25 AM
Unknown Object (File)
Feb 21 2025, 4:33 AM
Unknown Object (File)
Feb 4 2025, 5:28 AM
Unknown Object (File)
Jan 27 2025, 9:36 AM
Unknown Object (File)
Jan 27 2025, 9:32 AM
Unknown Object (File)
Jan 14 2025, 9:17 PM
Unknown Object (File)
Dec 12 2024, 12:46 AM
Subscribers
None

Details

Summary

The OID is saved when we encounter CTLFLAG_SKIP so that descendants can be skipped as well. We then must not update the skip OID until we are out of the node. This was achieved by resetting the skip OID once the prefix no longer matches, but the case where the OID reset on is also CTLFLAG_SKIP was not accounted for.

Reported by: mav
Sponsored by: iXsystems, Inc.

Diff Detail

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