This is a discussion on Re: COUNTER64 Error within the SNMP Users forums, part of the Networking and Network Related category; Dave Shield wrote: > On Tue, 2006-02-14 at 20:08 +0530, sasikumar.bodathula@wipro.com wrote: > >&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Dave Shield wrote:
> On Tue, 2006-02-14 at 20:08 +0530, sasikumar.bodathula@wipro.com wrote: > >>Thanks for ur inputs > > >>count.high = lval&0xffffffff00000000; > > > I'm very suspicious about this. > count.high should be a 32-bit value > (containing the upper-32 bits of the > full 64-bit value). > > The code you show doesn't seem to do this. > I'm no 64-bit expert, but I'm not at all > convinced this is correct. > > Hopefully someone more knowledgable than > me will chip in.... > Your correct. The method he is using will work fine for any value that can be expressed as a 32-bit value. However, he's always setting .high to 0, so he'll never be able to express a value that goes beyond 32-bits. ------------------------------------------------------- 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=...486&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/...net-snmp-users |