On Mon, 28 Jun 2010 08:40:15 -0700 Steve wrote:
SF> On Mon, Jun 28, 2010 at 09:01:29PM +0530, Prakash wrote:
SF> > How to handle u_int64_t type variables.
SF> > 
SF> > u_int64_t value = 39952034381;
SF> > 
SF> > when I tried to set the value, I am getting the following message.
SF> > 
SF> > truncating integer value > 32 bits

I'm guessing that you meant you were trying to send a SNMP set request with
this value, not that you had a compiler error. If that is the case, you need
to use net-snmp's counter64 structure to compose the 64 bit value from 2 32bit
values.  And make sure the object you are trying to set is actually a
Counter64 object. Most SNMP objects max out at 32 bits.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to