On Mon, 2005-04-18 at 15:55, Shobana Sampath wrote: > When I try to set the agent-addr using the code below, > I get the following error:
> I use the following code to add the agent-addr: > cp = asn_build_string(cp, out_length, > (u_char) (ASN_IPADDRESS | > ASN_PRIMITIVE), > (u_char *) pdu->agent_addr, 4); But why on earth are you messing about with the code to build the packet in the first place? The library already handles this. If you tell it to add the same value twice, then it's not surprising if it throws an error! All you have to do is set the required value in the 'agent_addr' field of the PDU structure. The library will do the rest. Dave ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
