Skip to content

walk(): remove baseOid fallback, default to .1.3.6.1 #524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2025

Conversation

TimRots
Copy link
Member

@TimRots TimRots commented Jul 20, 2025

Deprecates the legacy use of baseOid (.1.3.6.1.2.1) in walk(), which previously restricted default walks to MIB-2. When no rootOid is provided, we now default to .1.3.6.1, the IANA-assigned 'internet' subtree, which includes both standard (e.g. MIB-2) and vendor-specific branches. This aligns with X.660 OID structure and Net-SNMP behavior, and avoids encoding errors caused by incomplete OIDs.

Fixes #486

Originally reported by Debianov.

Deprecates the legacy use of baseOid (.1.3.6.1.2.1) in walk(), which previously
restricted default walks to MIB-2. When no rootOid is provided, we now default
to .1.3.6.1, the IANA-assigned 'internet' subtree, which includes both standard
(e.g. MIB-2) and vendor-specific branches. This aligns with X.660 OID structure
and Net-SNMP behavior, and avoids encoding errors caused by incomplete OIDs.

Fixes gosnmp#486

Originally reported by Debianov.

Signed-off-by: Tim Rots <tim.rots@protonmail.ch>
@TimRots TimRots requested a review from SuperQ July 20, 2025 11:58
@TimRots TimRots merged commit 22f8e9e into gosnmp:master Jul 20, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unwanted OID replacement in BulkWalkAll function
2 participants