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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:30:    64 : OctetString, // ipaddress    65 : Integer, // counter    66 : Integer, // gauge    67 : Integer, // timeticks    68 : OctetString, // opaque       // v2    70 : Integer, // counter64       // context PDU -  128 : Protocols.LDAP.ldap_privates.asn1_context_sequence, -  129 : Protocols.LDAP.ldap_privates.asn1_context_sequence, -  130 : Protocols.LDAP.ldap_privates.asn1_context_sequence, -  131 : Protocols.LDAP.ldap_privates.asn1_context_sequence +  128 : Sequence, +  129 : Sequence, +  130 : Sequence, +  131 : Sequence,    ]);         //:   //: public vars   //:         //:   //: private variables
pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:255:    object pdu;    int id = get_req_id(), flg;    array vararr = ({});       foreach(varlist, string varname)    vararr += ({Sequence(    ({Identifier(@(array(int))(varname/".")),    Null()})    )});    -  pdu = Protocols.LDAP.ldap_privates.asn1_context_sequence(0, +  pdu = ASN1_CONTEXT_SEQUENCE(0,    ({Integer(id), // request-id    Integer(0), // error-status    Integer(0), // error-index    Sequence(vararr)})    );       // now we have PDU ...    flg = writemsg(rem_addr||remote_host,    rem_port || remote_port || SNMP_DEFAULT_PORT, pdu);   
pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:381:    array vararr = ({});       foreach(indices(varlist), string varname)    if(arrayp(varlist[varname]) || sizeof(varlist[varname]) > 1) {    vararr += ({Sequence(    ({Identifier(@(array(int))(varname/".")),    mk_asn1_val(varlist[varname][0], varlist[varname][1])})    )});    }    -  pdu = Protocols.LDAP.ldap_privates.asn1_context_sequence(2, +  pdu = ASN1_CONTEXT_SEQUENCE(2,    ({Integer(id), // request-id    Integer(errcode), // error-status    Integer(erridx), // error-index    Sequence(vararr)})    );       // now we have PDU ...    flg = writemsg(origdata[id]->ip||remote_host,    origdata[id]->port || remote_port || SNMP_DEFAULT_PORT, pdu);   
pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:419:    object pdu;    int id = get_req_id(), flg;    array vararr = ({});       foreach(varlist, string varname)    vararr += ({Sequence(    ({Identifier(@(array(int))(varname/".")),    Null()})    )});    -  pdu = Protocols.LDAP.ldap_privates.asn1_context_sequence(1, +  pdu = ASN1_CONTEXT_SEQUENCE(1,    ({Integer(id), // request-id    Integer(0), // error-status    Integer(0), // error-index    Sequence(vararr)})    );       // now we have PDU ...    flg = writemsg(rem_addr||remote_host,    rem_port || remote_port || SNMP_DEFAULT_PORT, pdu);   
pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:487:    object pdu;    int id = get_req_id(), flg;    array vararr = ({});       foreach(indices(varlist), string varname)    vararr += ({Sequence(    ({Identifier(@(array(int))(varname/".")),    mk_asn1_val(varlist[varname][0], varlist[varname][1])})    )});    -  pdu = Protocols.LDAP.ldap_privates.asn1_context_sequence(3, +  pdu = ASN1_CONTEXT_SEQUENCE(3,    ({Integer(id), // request-id    Integer(0), // error-status    Integer(0), // error-index    Sequence(vararr)})    );       // now we have PDU ...    flg = writemsg(rem_addr||remote_host,    rem_port || remote_port || SNMP_DEFAULT_PORT, pdu);   
pike.git/lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:563:    locip = "0.0.0.0";    if (sizeof(locip/".") != 4)    locip = "0.0.0.0"; //FIXME: what for hell I want to do with such ugly value?    sscanf(locip, "%d.%d.%d.%d", lip[0], lip[1], lip[2], lip[3]);       foreach(indices(varlist), string varname)    vararr += ({Sequence(    ({Identifier(@(array(int))(varname/".")),    mk_asn1_val(varlist[varname][0], varlist[varname][1])})    )}); -  pdu = Protocols.LDAP.ldap_privates.asn1_context_sequence(4, +  pdu = ASN1_CONTEXT_SEQUENCE(4,    ({    // enterprise OID    mk_asn1_val("oid", oid),       // ip address (UGLY!)    mk_asn1_val("ipaddr", lip),       // type (0 = coldstart, ...)    mk_asn1_val("int", type),