supported parsing of get-response packets

This commit is contained in:
blackhedd 2006-12-18 19:56:50 +00:00
parent eac464bcb9
commit 765988a57b

View file

@ -160,6 +160,11 @@ module Net
send :pdu_type=, :get_next_request send :pdu_type=, :get_next_request
# This PDU is identical to get-request except for the type. # This PDU is identical to get-request except for the type.
parse_get_request data parse_get_request data
when 2
send :pdu_type=, :get_response
# This PDU is identical to get-request except for the type,
# and the fact that the variable bindings will be non-null.
parse_get_request data
else else
raise Error.new( "unknown snmp-pdu type: #{app_tag}" ) raise Error.new( "unknown snmp-pdu type: #{app_tag}" )
end end