On 20 February 2010 11:06, majid namnabat <[email protected]> wrote: > snmp_set_var_typed_value(&var, ASN_OBJECT_ID, > oidnetsnmpUDPDomain3, > oidnetsnmpUDPDomain3_len );
The final parameter of this routine is the size of the data being passed. Not the number of subidentifiers (since the same routine can be used for integers, strings and OID values). Try snmp_set_var_typed_value( .... oidnetsnmpUDPDomain3_len * sizeof(oid)); (and similarly for the others). Dave ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
