On Mon, 10 Aug 2009, Dave Shield wrote:

> 2009/8/10 Tomas Macek <[email protected]>:
>> Do I have to call snmp_free_pdu() after calling snmp_fix_pdu()?
>
> That depends on what you intend to do with the response PDU
> (containing the error) after you have constructed a "fixed" version.
>
> If you intend to do more processing on the first response, then you
> shouldn't release it (obviously!).   If you intend to resend the fixed
> request (as in the command-line tools), then this will result in a
> new 'response' PDU, which will override the existing one.  So you
> probably should call 'snmp_free_pdu()' on the original response.
>

Thank you Dave, now I know I must call snmp_free_pdu(), because I need 
only the 
fixed PDU - I need to resend the fixed one and I don't need the 
previous pdu anymore.

Do you plan to create some man page for snmp_fix_pdu() and even for some 
else functions for that are manuals missing? I found almost nothing about 
this function even on net-snmp wiki pages. (only this: 
http://www.net-snmp.org/dev/agent/group__snmp__client.html)

Best regards


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to