Skip to content
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

Fix SendTrap to allow v1 traps that have no varbinds (like coldStart) #426

Merged
merged 1 commit into from Feb 2, 2023

Conversation

damienstuart
Copy link
Contributor

Allow sending v1 traps that have no varbinds. The check for at least 1 pdu, and the TimeTick check on trap.Variables[0] should apply only to v2c/v3.

@TimRots
Copy link
Member

TimRots commented Jan 31, 2023

Thank you for the pull @damienstuart. Could you please add DCO as mentioned here

Pending above this pull request LGTM as rfc1157 4.1.6 mentions that the significance of the variable-bindings component of the Trap-PDU is implementation-specific for SNMP v1.

@SuperQ could you please share your thoughts on this?

Signed-off-by: Damien Stuart <dstuart@dstuart.org>
Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Makes sense. Thanks.

@TimRots TimRots merged commit 7f6d705 into gosnmp:master Feb 2, 2023
SuperQ added a commit that referenced this pull request Aug 28, 2023
This release now requires Go 1.20 or higher.

* [ENHANCEMENT] Allow sending v1 traps that have no varbinds #426
* [BUGFIX] Fix getBulk SnmpPacket MaxRepetitions value #413
* [BUGFIX] Refactor security logger #422
* [BUGFIX] Add privacy passphrase in extendKeyBlumenthal cacheKey call #425
* [BUGFIX] unmarshal: fix panic from reading beyond slice #441

Signed-off-by: SuperQ <superq@gmail.com>
@SuperQ SuperQ mentioned this pull request Aug 28, 2023
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.

None yet

3 participants