which variable type to use when extending a unsigned32 or gauge32

Leo Lin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
 
I have a scalar OID of unsigned32.  On my mib module, I declare a variable that hold an unsigned int, like so,
 
unsigned int my_oid;
 
when I issue an snmpget, I get the following error
 
"Wrong type (should be Gauge32 or Unsigned32) INTEGER:30"
 
How can I declare a Unsigned32 or Gauge32 variable in my C module?
 
Thanks!
 
Leo;

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.