Hi
I am fairly new to net snmp and have a question that is puzzling me 
regarding injecting user defined Netsnmp_Node_Handlers into the 
netsnmp_handler_registration.

To take an example, the netsnmp_register_int_instance(..) API allows you 
to specify a user defined Netsnmp_Node_Handler * subhandler.  If a user 
defined handler is specified then the chain of
netsnmp_mib_handlers calls is (I think) as follows:
serialize_helper_handler->netsnmp_instance_helper_handler->netsnmp_instance_int_handler->user
 
defined Handler

It seems that this and the other 'register' type APIs always inject any 
user defined handlers at the end of the call chain.
Having the user defined handler injected into the end of the call chain 
does not seem logical e.g. in the case of a GET request the SNMP 
response gets sent in the netsnmp_instance_int_handler so it is too late 
for anything in the user defined handler to change the value of the 
response object.

We can get round the problem by injecting the user defined handler 
before the netsnmp_instance_int_handler, but this in effect means the 
APIs cannot be used as is.
So my question is why are user defined handlers injected into the end of 
the call chain as it seems more logical to call any user defined 
handlers before the final handler that gives the SNMP
response?

Thanks,
Patrick Cumming

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.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