logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: requests->requestvb_val union: msg#00282

Subject: Re: requests->requestvb_val union
H> For snmpset request the value passed is stored in 
H>      requests->requestvb->val  union
H> 
H> Is it possible to use this union for snmpget (Is the memory allocated for
H> requestvb pointer in case of snmpget) i.e. Do I need a extra variable in
H> which the return value for snmpget will be stored? or can it be done with
H> the requests->requestvb->val union (Is the allocation done by Net-SNMP Agent
H> Code).

Yes, you use the same structure for snmpget requests. You can use
snmp_set_var_typed_value() to set the value to be returned, just like you would
with snmpset.


-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/


<Prev in Thread] Current Thread [Next in Thread>