Hello,
I have a table which have index ranging from 1-1000 , once the index reaches
1000 it is rounded off back to 1.
Now in such case the existing rows with that index need to be updated.
1) Can i safely go ahead with finding a row with the index(rounded off back to
1) and simpy updating it.
i.e
CONTAINER_FIND(cb.container,index);
if(found)
{
simply update the row
}
2) Or I first need to delete that particular row from table with the
index(rounded off back to 1) , allocate new memory and then insert the row with
same index
i.e
CONTAINER_FIND(cb.container,index);
if(found)
{
delete row
SNMP_MALLOC_TYPEDEF() //allocate memory
CONTAINER_INSERT() //insert the row with same index
}
As i read in forum that:
"modifying pointers after they've been inserted, without removing them is NOT
allowed options for a container."
Thanks
Gaurav
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders