On Tue, 2006-02-14 at 19:08 +0530, [EMAIL PROTECTED] wrote: > IN the "struct counter64" it has two value low and high as > attributes.
That's correct - being the lower and upper 32-bits of the 64-bit value respectively. > Is there any example code which comes with net-snmp src package > which i can refer. Try something like: long long single64; struct counter64 two32s; two32s.high = (single64 >> 32) & 0xffff; two32s.low = (single64) & 0xffff; single64 = (two32s.high << 32) + two32s.low; Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users