Jose Roberto Fernandez Anahia <jrfndes@...> 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@…

Hi Wes,

My doubt is exactly in the behaviour you described.
When the upper code call my get My_Get_Table(struct variable *vp, oid *name, 
size_t *length,  int exact, size_t *var_len, WriteMethod **write_method)
 I return NULL when I have no more date to answer the query. But the upper code 
still asking me to send more results as I exemplified in my first post,
including other columns too. If I informed “nothing more”, why the upper code 
continue to asking for? 
Where I need to answer “Nothing more” I suppose to returning NULL the function 
that handler the queries related to my MIB, right?

If my query refers to the column x and I have only 4 rows, why it still calling 
me for more rows of the same column after I already answered with a NULL, and 
why to
ask for other columns too (but not all others in the table) ?

Perhaps you already answered, just to confirm to you that I send “nothing more” 
 as you explained to me above.

Best regards,


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

Reply via email to