Skip to content

Fix: Set the Reportable flag in trap.IsInform messages #517

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 2 commits into from
Jul 17, 2025

Conversation

Naveenrajp26
Copy link
Contributor

@Naveenrajp26 Naveenrajp26 commented Jul 10, 2025

Per RFC 3414 Section 4:

When sending an SNMPv3 InformRequest, the Reportable flag MUST be set in MsgFlags.
This ensures that the authoritative engine will return a Report PDU containing
engineBoots and engineTime for time synchronization which is required before
authenticated communication can succeed. Without this, the engine may reject
the Inform as out-of-time-window or unknown engine.

Copy link
Member

@TimRots TimRots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your first contribution @Naveenrajp26. Great bug you fixed there.

I left you some review comments to apply, then it's ready for further review.

Copy link
Member

@TimRots TimRots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for applying the review comment.

For us to be able to merge your PR you have to sign-off the last two commits on your topic branch. Please run:

git rebase HEAD~2 --signoff
git push --force-with-lease origin snmp-inform-fix

…inetime and engineboots

Signed-off-by: pavithra <naveenraj.pavithran@nokia.com>
Signed-off-by: pavithra <naveenraj.pavithran@nokia.com>
@TimRots TimRots requested a review from SuperQ July 16, 2025 17:38
@TimRots
Copy link
Member

TimRots commented Jul 16, 2025

@SuperQ I think this PR is ready for your re-view now. If adding tests would be blocking for you I can volunteer to handle that in a follow-up.

@SuperQ SuperQ changed the title Update the trap.go file to set the report flag to synchronize the eng… Fix: Set the Reportable flag in trap.IsInform messages Jul 17, 2025
@SuperQ SuperQ merged commit 7201c26 into gosnmp:master Jul 17, 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.

4 participants