etingof / snmpsim

SNMP Simulator
http://snmplabs.com/snmpsim/
BSD 2-Clause "Simplified" License
376 stars 119 forks source link

Added snmpwalk convert support for Opaque extra types UInt64 and Int64 #141

Open landy2005 opened 4 years ago

landy2005 commented 4 years ago

Added convertion support for additional Opaque types with integers (only which I have in snmpwalks). Ie:

.1.3.6.1.4.1.2021.10.1.6.1 = Opaque: Float: 0.340820
.1.3.6.1.4.1.2021.10.1.6.2 = Opaque: UInt64: 18446744073709551614
.1.3.6.1.4.1.2021.10.1.6.3 = Opaque: Int64: 9223372036854775806
.1.3.6.1.4.1.2021.10.1.6.4 = Opaque: Int64: -2

Notes:

Currently I just added hard fix for self snmpwalks received from user.