Branch: Tag:

2002-12-04

2002-12-04 19:14:00 by H. William Welliver III <bill@welliver.org>

added SNMP agent with get/set support

Rev: lib/modules/Protocols.pmod/SNMP.pmod/agent.pike:1.1
Rev: lib/modules/Protocols.pmod/SNMP.pmod/getcmd.pike:1.4
Rev: lib/modules/Protocols.pmod/SNMP.pmod/module.pmod:1.1
Rev: lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:1.10
Rev: lib/modules/Protocols.pmod/SNMP.pmod/snmp_globals.h:1.3

17:   //! 2570 : v3 description   //!    - // $Id: protocol.pike,v 1.9 2002/12/03 09:48:05 hop Exp $ + // $Id: protocol.pike,v 1.10 2002/12/04 19:14:00 bill Exp $         #include "snmp_globals.h"
427:    break;       default: // bad type! +  error("Unknown SNMP data type " + type + ".");    return 0;    }   
575:   //! // set the value of 1.3.6.1.4.1.1882.2.1 to "blah".   //! object s=Protocols.SNMP.protocol();   //! s->snmp_community="mysetcommunity"; - //! mapping req=(["1.3.6.1.4.1.1882.2.1": ({"string", "blah"})]); + //! mapping req=(["1.3.6.1.4.1.1882.2.1": ({"str", "blah"})]);   //! int id=s->set_request(req, "172.21.124.32");   //!   int set_request(mapping varlist, string|void rem_addr,