Skip to content

Commit 79f3ec6

Browse files
author
blackhedd
committed
comments
1 parent f6c87c0 commit 79f3ec6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/net/snmp.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class SNMP
3636
AsnSyntax = BER.compile_syntax({
3737
:application => {
3838
:primitive => {
39-
1 => :integer, # Counter32, (RFC1155 sec 6)
40-
2 => :integer, # Gauge32, (RFC1155 sec 6)
41-
3 => :integer # TimeTicks32, (RFC1155 sec 6)
39+
1 => :integer, # Counter32, (RFC2578 sec 2)
40+
2 => :integer, # Gauge32 or Unsigned32, (RFC2578 sec 2)
41+
3 => :integer # TimeTicks32, (RFC2578 sec 2)
4242
},
4343
:constructed => {
4444
}
@@ -70,6 +70,7 @@ def to_ber
7070
# SNMP 32-bit gauge.
7171
# Defined in RFC1155 (Structure of Mangement Information), section 6.
7272
# A 32-bit counter is an ASN.1 application [2] implicit unsigned integer.
73+
# This is also indistinguishable from Unsigned32. (Need to alias them.)
7374
class Gauge32
7475
def initialize value
7576
@value = value

0 commit comments

Comments
 (0)