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)
Mon, Oct 13, 3:18 AM
Unknown Object (File)
Mon, Oct 13, 3:18 AM
Unknown Object (File)
Mon, Oct 13, 3:18 AM
Unknown Object (File)
Sun, Oct 12, 3:23 PM
Unknown Object (File)
Sat, Sep 20, 6:06 AM
Unknown Object (File)
Sep 17 2025, 11:18 AM
Unknown Object (File)
Sep 16 2025, 11:55 PM
Unknown Object (File)
Sep 13 2025, 10:20 PM
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