Re: about net-snmp 64bits data

2010-01-27 Thread Alexander King
(u_char)type, + (u_char *) &c64, sizeof(struct counter64)); + RETVAL = 1; + break; + } -- Original -- From: "Dave Shield"; Date: Wed, Jan 27, 2010 06:55 PM To: "Alexander King"; Cc: "net-snmp-u

Re: about net-snmp 64bits data

2010-01-27 Thread Dave Shield
2010/1/27 Alexander King : > You also need to look again at how Counter64 values are handled in the > Net-SNMP agent.   Hint:  It's not a simple "long" or "long long" variable. > > I did this: > and use uint64_t in my c source code,is it right? No. Please look at how Counter64 objects are ha

about net-snmp 64bits data

2010-01-27 Thread Alexander King
-- Original -- From: "Dave Shield"; Date: Wed, Jan 27, 2010 05:23 PM To: "Alexander King"; Cc: "net-snmp-users"; Subject: Re: when snmpwalk query my private trap OID the snmpd routine auto termination 2010/1/27 Alexander King : > I checked the handler functi