Jose Roberto Fernandez Anahia <jrfn...@gmail.com> writes:

> I observed that my funcion My_Get_Table(struct variable *vp, oid
> *name, size_t *length, int exact, size_t *var_len, WriteMethod
> **write_method)
> is called much more than 5 (five) 5 times!!!

The upper code doesn't know how many entries you have, so it has to call
you until it gets a "nothing more" answer.  And it also has no notion of
whether or not new data was added to a table since the last time the mib
module was queried, so even if it only counted 4 rows in the walk of the
first column, it will continue to ask for more data in all the rest of
the columns too (it never assumes the data hasn't changed between calls).
-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net


_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to