Hi,

I've a question regarding netsnmp_call_handlers(), if I have a SET pdu
as following:

   set a=1, b=2, c=3

Is netsnmp_call_handlers() called once for all 3 varbinds, or it is
called three times, each for one varbind?
(one for 'a', one for 'b', one for 'c')?

Based on the code in handle_var_requests():

    for (i=0; i<=asp->treecache_num; i++)
    {
        ...
        netsnmp_call_handlers();
        ...
    }

I tend to think netsnmp_call_handlers() is called 3 times, but I found
somewhere on internet talking about UCD-SNMP vs Net-SNMP which has
following:

Q: If an snmp querye PDU contains 3 (eg) varbinds, all from the same
table, in
   the ucd code we know the agent sends 3 requests to the individual set
funcs
   of the varbinds.  If we go to the new style would the agent
"collect" these
   and make a single call? 
A: yes, the new style will collect into one request to the handler.
There is
   even a 'row merge' helper which will break/merge it into one call per
row,
   so all the requests for a certain row will come in together.

So I don't know how varbinds are passed to handlers (and write funcs in
ucd code)

Also is there any place I can find description regarding
asp->treecache[]? What is it for? What is asp->treecache_num?

Thanks,
Yong Chen


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to