>
> > Is there any function in net-snmp that will let me extract the integer
> data
> > value that comes with a SET operation out of this structure?
>
> requests->requestvb  is the varbind structure (of type
> netsnmp_variable_list)
> so the value is held in the (union) structure  requests->requestvb->val
>
> So an integer value would be retrieved using
>
>    long newval = *(requests->requestvb->val.integer);


Thanks Dave! I've got it working now.

And you've given me a lot of food for though with the earlier explanations
as well. It's got me thinking - what are varbind structures? From what I
gather, they seem to be the primary structure by which net-snmp passes data
around - at least as the interaction point with external sources.

I've seen the structure definition, and it contains a lot - OID values, data
information ... etc. I'm guessing that this was introduced during the
net-snmp 5.x upgrade ?

Puzzling over the rest of the code,
Abraham V.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to