On Fri, 2005-04-29 at 23:31, Toth, Gregory S wrote: > >> oid my_oid[] ={ 1,2,3,4,5,6,7,1}; > >> vptr = put_index_data; > >> snmp_set_var_value(vptr,(u_char *)my_oid,8); > > >No. > >Try: > > long this_index = 1; // (1,x) elements > > vptr = put_index_data; > > snmp_set_var_value( vptr, (u_char*)&this_index, > sizeof(this_index)); > > return put_index_data; > > This caused the agent to coredump on the snmp_set_var_value call.
Hmmm... What was the value of 'put_index_data' ? Where was this code? In the 'get_first' routine, the 'get_next' routine or what? It might be helpful to see the full code for these two routines. Dave ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders