>>>>> On Wed, 30 Jun 2010 18:33:04 +0530, "Prakash" >>>>> <prakash.r...@saventech.com> said:
P> How to set convert the u_int64_t to counter64 or U64. The easiest way is to simply copy the two 32bit components of the uint64 into the counter64 structure's 'high' and 'low' elements. P> Is there any other type to handle u_int64_t instead of using counter64 ?. No, the Net-SNMP code base never assumes that int64 support is available on the system. Generally we can't since many embedded devices that still make use of our code don't have 64-bit support. It'd probably be worth adding a new return type that auto-converts a uint64 to a counter64 for people that are sure they're never going to need to run on a 32 bit only system, but internally we could also never use it :-/ (really in the above, I mean "a system that doesn't have support for 64-bit data types" since even many 32-bit CPUs still have 64-bit datatype support) -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net ------------------------------------------------------------------------------ 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