File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments