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.18 2008/05/01 10:41:11 nilsson Exp $ + // $Id: protocol.pike,v 1.19 2008/06/28 16:36:58 nilsson Exp $         #include "snmp_globals.h"   #include "snmp_errors.h"      #if 1   // --- ASN.1 hack   class asn1_application_octet_string   {    inherit Standards.ASN1.Types.OctetString;
pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:109: Inside #if 1
   return res->end_decode_constructed(i);    }    else    {    // Primitive encoding    return p ? p()->decode_primitive(contents)    : Standards.ASN1.Decode.primitive(tag, contents);    }   }    - static mapping snmp_type_proc = + protected mapping snmp_type_proc =    ([ 1 : Standards.ASN1.Types.asn1_boolean,    2 : Standards.ASN1.Types.asn1_integer,    3 : Standards.ASN1.Types.asn1_bit_string,    4 : Standards.ASN1.Types.asn1_octet_string,    5 : Standards.ASN1.Types.asn1_null,    6 : Standards.ASN1.Types.asn1_identifier,    // 9 : asn1_real,    //10 : asn1_enumerated,    16 : Standards.ASN1.Types.asn1_sequence,    17 : Standards.ASN1.Types.asn1_set,