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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:128:    if(timeout && !wait(timeout))    return 0;       rv = read();    return rv;   }      //! decode ASN1 data, if garbaged ignore it   mapping decode_asn1_msg(mapping rawd) {    -  Object xdec = Standards.ASN1.Decode.der_decode(rawd->data, snmp_type_proc); +  Object xdec = Standards.ASN1.Decode.simple_der_decode(rawd->data, +  snmp_type_proc);    string msgid = (string)xdec->elements[2]->elements[0]->value;    int errno = xdec->elements[2]->elements[1]->value;    mapping msg = ([ "ip":rawd->ip,    "port":rawd->port,    "error-status":errno,    "error-string":snmp_errlist[errno],    "error-index":xdec->elements[2]->elements[2]->value,    "version":xdec->elements[0]->value,    "community":xdec->elements[1]->value,    "op":xdec->elements[2]->get_tag(),