I'm trying to implement a subagent module for my table, which is an 
interface table on which my protocol runs.  All of the table data is 
owned/managed by an external process, so in my code I need to make 
asynchronous calls (via IPC) to the process to get/set data (which is 
why I'm using delegated requests).  GET and SET work like a charm. 
However, I'm running into an issue with GETNEXT.  The interface table 
I'm implementing won't always have an instance/row for each interface on 
the machine, so in my delegated request callback handler I do 
netsnmp_set_request_error(reqinfo, request, SNMP_NOSUCHINSTANCE).

This works fine in the main table handler if I hard-code the responses. 
  In that case, if I do SNMP_NOSUCHINSTANCE, another GETNEXT request 
gets called, and then I'll handle the next interface.  In other words, 
SNMP_NOSUCHINSTANCE seems to result in another GETNEXT call for my main 
table handler, which is what I want.  But when I remove the hard-coding 
and actually use the delegating requests, when I do SNMP_NOSUCHINSTANCE 
in the callback, I don't get any more calls to GETNEXT.

In my delegated request callback, how do I signal "this particular 
interface/instance/row doesn't exist, but others might, so keep asking"?


Thank you!!




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to