RE: COUNTER64 Error

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Dave,
      In case of counter 64 do we need to pass the counter64 structure as the one of the parameter to the function "snmp_set_var_typed_value" or is it otherway i.e unsigned long long value to it.

Rgards,
Sasikumar.



-----Original Message-----
From: Dave Shield [mailto:[email protected]]
Sent: Tue 2/14/2006 8:14 PM
To: Sasikumar Bodathula (WT01 - Broadband Networks)
Cc: [email protected]
Subject: RE: COUNTER64 Error
 
On Tue, 2006-02-14 at 20:08 +0530, [email protected] 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....

Dave
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.