Re: snmp_parse_oid usage

2010-07-06 Thread Dave Shield
On 6 July 2010 10:37, Norasyikin MD Ali wrote: >      snmp_set_var_typed_value(idx, ASN_OBJECT_ID, >                   value,rootlen); Try snmp_set_var_typed_value(idx, ASN_OBJECT_ID, root, rootlen); You need to provide it with the parsed OID array value, not the string version. Dave

snmp_parse_oid usage

2010-07-06 Thread Norasyikin MD Ali
Hello, I'm trying to build an agent to handle ASN_OBJECT_ID types. Everywhere in my application code i define the OIDs as a string (also the way i concatenate them with table indexes). In the agent : char *value; oid root[MAX_OID_LEN]; int rootlen = MAX_OID_LEN; case TR_MIB_OID: value