Skip to content

Releases: gosnmp/gosnmp

v1.37.0

24 Nov 15:00
4fb6a44
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.36.1...v1.37.0

v1.36.1

05 Sep 07:57
5c3b477
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.36.0...v1.36.1

1.36.0

28 Aug 09:36
2dfb865
Compare
Choose a tag to compare

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

1.35.0 / 2022-05-23

23 May 15:37
v1.35.0
33df32e
Compare
Choose a tag to compare
This release now requires Go 1.17 or higher.

NOTE: The UnmarshalTrap now returns both an SnmpPacket and an error (#394)

* [BUGFIX] gosnmp.Set(): permit ObjectIdentifier PDU Type #378
* [BUGFIX] SendTrap: do not set Reportable MsgFlags for v3 #398
* [CHANGE] Support authoritative engineID discovery when listening for traps #394
* [CHANGE] Require Go 1.17+
* [ENHANCEMENT] marshalUint32: Values above 2^31-1 encodes in 5 bytes #377
* [ENHANCEMENT] Add Control function to GoSNMP dialer parameters #397

1.34.0 / 2021-11-17

17 Nov 11:28
v1.34.0
f6fb3f7
Compare
Choose a tag to compare

NOTE: marshalInt32 now always encodes an integer value in the smallest possible
number of octets as per ITU-T Rec. X.690 (07/2002).

  • [ENHANCEMENT] gosnmp/marshalInt32: adhere to ITU-T Rec. X.690 integer encoding #372
  • [ENHANCEMENT] parseInt64: throw error on zero length as per X690 #373
  • [ENHANCEMENT] helper.go: Interpreting the value of an Opaque type as binary data if the Opaque sub-type cannot be recognized #374
  • [ENHANCEMENT] helper.go: Implemented Opaque type marshaling #374
  • [BUGFIX] marshal.go: Fixed invalid OpaqueFloat and OpaqueDouble marshaling in marshalVarbind() function #374
  • [BUGFIX] marshal.go: stricter cursor bounds checking in unmarshalPayload #384

1.33.0 / 2021-10-19

19 Oct 20:42
v1.33.0
96366f3
Compare
Choose a tag to compare
  • [BUGFIX] parseLength: avoid OOB read, prevent panic #354
  • [BUGFIX] Detect negative lengths in parseLength, prevent panic #369
  • [FEATURE] Add LocalAddr setting to bind source address of SNMP queries #342
  • [ENHANCEMENT] Validate SNMPv3 Auth/Priv Protocol for incoming trap message #351
  • [ENHANCEMENT] helper.go: add error handling to parseLength #358
  • [ENHANCEMENT] Rename v3_testing_credentials to avoid testing import in prod builds #360
  • [ENHANCEMENT] helper.go: Improved decodeValue() function #340

1.32.0 / 2021-05-13

13 May 16:43
v1.32.0
59feac8
Compare
Choose a tag to compare

NOTE: This release changes the Logger interface. The loggingEnabled variable has been deprecated.

  • [BUGFIX] marshal.go: improve packet validation and error handling #323
  • [BUGFIX] marshal.go: Fix on-error-continue flow in sendOneRequest #324
  • [BUGFIX] Fix SNMPv3 trap authentication #332
  • [CHANGE] New Logger interface has been implemented #329
  • [ENHANCEMENT] helper.go: Improved OID marshaling with sub-identifier validation as per rfc2578 section-3.5 #321
  • [ENHANCEMENT] Add rfc3412 report errors #333

1.31.0 / 2021-04-05

05 Apr 12:14
v1.31.0
5160c2c
Compare
Choose a tag to compare
  • [BUGFIX] Add validation to prevent calling updatePktSecurityParameters with non v3 packet #251 #314
  • [ENHANCEMENT] walk.go: improve BulkWalk error handling #306
  • [ENHANCEMENT] return received SNMP error code immediately instead of waiting for timeout #319

1.30.0 / 2021-02-20

20 Feb 19:49
v1.30.0
f6c004e
Compare
Choose a tag to compare

NOTE: This release changes the MaxRepetitions type to uint32.

  • [BUGFIX] Add bounds checking for reqID and msgID #273
  • [FEATURE] New packet inspection hook methods for in-flight measurements #276
  • [ENHANCEMENT] Support for local e2e tests against net-snmpd #292
  • [CHANGE] Fix GetBulkRequest MaxRepetitions signedness issue in marshalPDU() #293
  • [CHANGE] mocks/gosnmp_mock.go: Update UnmarshalTrap mock base method #294
  • [BUGFIX] marshal.go: Fix signedness issue in marshalPDU() #295
  • [ENHANCEMENT] marshalPDU(): stricter integer conversion #301
  • [ENHANCEMENT] Use Go 1.13 error wrapping #304
  • [ENHANCEMENT] walk.go: improve BulkWalk error handling #306
  • [ENHANCEMENT] MaxRepetitions now allows values between 0..2147483647 and wraps to 0 at max int32.

1.29.0 / 2020-12-07

07 Dec 12:59
v1.29.0
b191f58
Compare
Choose a tag to compare

NOTE: This release returns the OctetString []byte behavior for v1.26.0 and earlier.

  • [CHANGE] Return OctetString as []byte #264