From 79f3ec6e0da1d47135b04fe1e8c0dd2b63fae7a8 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Thu, 21 Dec 2006 16:04:25 +0000 Subject: [PATCH] comments --- lib/net/snmp.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/net/snmp.rb b/lib/net/snmp.rb index 1c1f28c..1fda412 100644 --- a/lib/net/snmp.rb +++ b/lib/net/snmp.rb @@ -36,9 +36,9 @@ module Net 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 @@ module Net # 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