On Wed, 2005-10-12 at 20:41 +0530, [EMAIL PROTECTED] wrote: > Kindly find attached file for the code reference.
> struct spiConnEntry * > spiConnTable_addEntry(long atca910xSpiConnectionId ) > { > spiConnEntry *entry; > entry = (spiConnEntry *)malloc(sizeof(spiConnEntry)); [SNIP] > } > void * > spiConnTable_create_data_context(netsnmp_variable_list * index_data) > { > spiConnEntry *dataCtx = SNMP_MALLOC_TYPEDEF(spiConnEntry); [SNIP] > } That doesn't look right - you're allocating memory for the (same) row in two different places. And then when it comes to committing the change: > spiConnTable_addEntry( *my_data_context ); this doesn't match the declaration of spiConnTable_addEntry. Remember, spiConnTable_create_data_context is used to create the row (as a "standalone" structure). spiConnTable_addEntry is used to link the *already* *created* row into the internal table. > When I try to create(commit) row using MGSOFT browser,It says no row creation. I have no experience of this browser. I *strongly* suggest you try creating the row using a simple 'snmpset' command. Dave ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders