Class: PacketGen::Header::SNMP::Trapv1

Inherits:
RASN1::Model
  • Object
show all
Defined in:
lib/packetgen/header/snmp.rb

Overview

Class to handle Trap from SNMPv1 Trap-PDU ::= [4] IMPLICIT SEQUENCE { enterprise OBJECT IDENTIFIER, agent-addr NetworkAddress, generic-trap -- generic trap type INTEGER { coldStart(0), warmStart(1), linkDown(2), linkUp(3), authenticationFailure(4), egpNeighborLoss(5), enterpriseSpecific(6) }, specific-trap INTEGER, time-stamp TimeTicks, variable-bindings VarBindList } This class defines 6 attributes accessibles through #[]:

  • :enterprise for request-id (type RASN1::Types::ObjectId),
  • :agent_addr (type RASN1::Types::Integer),
  • :generic_trap (type RASN1::Types::Integer),
  • :specific_trap (type RASN1::Types::Integer),
  • :timestamp (type RASN1::Types::Integer),
  • :varbindlist for variable-bindings (type VariableBindings).

Author:

  • Sylvain Daubert

  • LemonTree55

Since:

  • 2.0.0