I didn't see a response to this old message, and I hope you solved the problem
on your own. Just answering for the archives in case someone else ran into
this same problem.

On Tue, 8 Dec 2009 20:35:22 -0800 (PST) nathan wrote:
N> I am calling snmpset on an OID like this...snmpset -v2c -cpublic <IP> <OID> 
i 23. In x86 platform, the agent gets this message and the value 23, executes 
fine. Then I cross compiled for MIPS, the same code, and issued  the same 
cmd..now the agent is running on MIPS. Now the value received by the agent is 0 
instead of 23....In the agent I get the value like this...
N> *var_val...I do not understnad why the same code is boken in MIPS....plse 
help.....thanks, 

If I had to guess, I'd say it was a byte-order problem. And you should use the
integer field of the pointer instead of simpely dereferencing it. I'm
surprised your compiler didn't complain.

------------------------------------------------------------------------------
Download Intel&#174; 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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to