Permalink
Browse files

comments

  • Loading branch information...
1 parent f6c87c0 commit 79f3ec6e0da1d47135b04fe1e8c0dd2b63fae7a8 blackhedd committed Dec 21, 2006
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/net/snmp.rb
View
@@ -36,9 +36,9 @@ class SNMP
AsnSyntax = BER.compile_syntax({
:application => {
:primitive => {
- 1 => :integer, # Counter32, (RFC1155 sec 6)
- 2 => :integer, # Gauge32, (RFC1155 sec 6)
- 3 => :integer # TimeTicks32, (RFC1155 sec 6)
+ 1 => :integer, # Counter32, (RFC2578 sec 2)
+ 2 => :integer, # Gauge32 or Unsigned32, (RFC2578 sec 2)
+ 3 => :integer # TimeTicks32, (RFC2578 sec 2)
},
:constructed => {
}
@@ -70,6 +70,7 @@ def to_ber
# SNMP 32-bit gauge.
# Defined in RFC1155 (Structure of Mangement Information), section 6.
# A 32-bit counter is an ASN.1 application [2] implicit unsigned integer.
+ # This is also indistinguishable from Unsigned32. (Need to alias them.)
class Gauge32
def initialize value
@value = value

0 comments on commit 79f3ec6

Please sign in to comment.