Table Implementation

2007-11-29 Thread Sridhar Addagada
I need to implement a table in my mib, generated the code using mib2c -c mib2c.mfd.conf, lookes like most of the code in the TODO list need not be touched and so i added my fetch routine in the devTable_container_load, and set the cache->flags |= NETSNMP_CACHE_AUTO_RELOAD, will this invoke devTable

Re: Agent Extension

2007-11-29 Thread kujtim . hyseni
Hi, attaching to arbitrary port works fine. The problem requires implementing snmp_add_full with respective routines, which doesn't work. Here is the code (for transport) ptp_tr = netsnmp_transport_open_server("agentx", "ptpext"); ... (for session) main_session = snmp_add_full(&def_sess, ptp_tr,

Re: Agent Extension

2007-11-29 Thread Dave Shield
On 28/11/2007, <[EMAIL PROTECTED]> wrote: > main_session = snmp_add_full(&def_sess, ptp_tr, NULL, ptpagentx_parse, >NULL, NULL, NULL, ptpagentx_checkpacket, NULL); The seventh parameter is the routine called to encode the request into a data packet - ready for sending out over the network. If