I am trying to fetch a value for variable(a known OID).
 
What I know is (oid * name, size_t namelen), from it I want to get  (findVar of  struct variable *)  to find the value for the OID. Here is what I did:
{
netsnmp_subtree *tree_ptr;
tree_ptr = netsnmp_subtree_find(name, namelen, NULL, "");
}
 I've tried to use tree_ptr->variables but it is nothing there.  I only see tree_ptr->reginfo->handler->myvoid. How can I get a struct variable * from this tree_ptr? Is it the right way to get the data?
 
Any inputs are appreciated. 
 
Thanks,
 
Fong
 
 
 

Reply via email to