Hi all,
 
 
I have a MIB that defines 3 tabular fields that must be processed as a
cohesive unit of data.  For example IP, netmask, default gateway.
I am using net-snmp v5.2.4 and my tables use the iterate-access style of
coding.
 
 
I want to access the three vbs from a single request and set them to
"already processed" so they are not checked for validity again.
I am going to leave the set logic alone and each var can be set
individually, they are just checked as a group.
Clearly I could do nothing special and check the group 3 times, but I am
trying to be somewhat efficient.
 
 
I have been analyzing the data structures for 
 
netsnmp_request_info *request;
netsnmp_table_request_info *table_info;
netsnmp_variable_list *var;

The request data structure is all the incoming data given to the
processing handler. It seems to be a list of requests, each with
different lists of varbinds (although mostly common to each other).   I
see that each varbind in the request in a multivarbind check or set is
listed under request->requestvb and that each subsequent request in the
submitted list removes a vb from the head of the requestvb list as the
check or set is processed.  I first thought the request->processed flag
would do the trick but subsequent requests in the list could contain the
vbs I need to look at.

I also see the var->data and var->dataFreeHook() in the varbind
structure, I could use this to save some state info (like a boolean ==
TRUE) to prevent rechecking, and free it when the check routines are
complete.

My question is.  Is there a better way to do this that fits in with the
architecture?  Is there a way to set a vb as checked that is built in?

Thanks in advance,
Adam

 


The information contained in this electronic mail transmission 
may be privileged and confidential, and therefore, protected 
from disclosure. If you have received this communication in 
error, please notify us immediately by replying to this 
message and deleting it from your computer without copying 
or disclosing it.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to