Hello,

I'm embbeding a sub-agent in an application and I have some doubts.

In my sub-agent I will have a few INTEGER variables (not a table, plain INTERGERs) that will be GET/SET. For the moment I'm thinking about using netsnmp_register_int_instance() with the default integer handler.

The problem is that every INTEGER variable has a value range that must be checked before a SET. Does net-snmp check for the validity of INTEGER ranges before setting it's value?

If not, is there any problem using a custom handler that checks for the range and then calls netsnmp_instance_int_handler() to set the variable value?

Also, is the range of values and default value of an INTEGER variable, read from a MIB module, available in the tree returned by get_tree()?


Thanks, -- Ivens Porto OSE - Open Systems Engineering http://www.ose.com.br Phone: (55) 34 - 3214-5995 Fax: (55) 34 - 3214-5994 Cel: (55) 34 - 8816-9942


------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to