pike.git / lib / modules / Protocols.pmod / SNMP.pmod / protocol.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:10:   //! 1155-7 : v1   //!   //! 1901-4 : v2/community (Bulk ops aren't implemented!)   //!   //! planned:   //! 2742 : agentX   //!   //! 2570 : v3 description   //!    - // $Id: protocol.pike,v 1.17 2008/01/04 20:50:42 nilsson Exp $ + // $Id: protocol.pike,v 1.18 2008/05/01 10:41:11 nilsson Exp $         #include "snmp_globals.h"   #include "snmp_errors.h"      #if 1   // --- ASN.1 hack   class asn1_application_octet_string   { -  inherit Standards.ASN1.Types.asn1_octet_string; +  inherit Standards.ASN1.Types.OctetString;    constant cls = 1;    constant type_name = "APPLICATION OCTET_STRING";    int tagx;       int get_tag() { return tagx; }       void init(int tagid, string arg) {    ::value = arg;    tagx = tagid;    }   }      class asn1_application_integer   { -  inherit Standards.ASN1.Types.asn1_integer; +  inherit Standards.ASN1.Types.Integer;    constant cls = 1;    constant type_name = "APPLICATION INTEGER";    int tagx;       int get_tag() { return tagx; }       void init(int tagid, int arg) {    ::init(arg);    tagx = tagid;    }