RE: COUNTER64 Error

2006-02-20 Thread Dave Shield
On Sun, 2006-02-19 at 15:24 +0530, [EMAIL PROTECTED] wrote: > 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" Yes. Pass the address of this structure, cast to "(u_char *)" as usual. Dave ---

RE: COUNTER64 Error

2006-02-19 Thread sasikumar.bodathula
Title: RE: COUNTER64 Error 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-

Re: COUNTER64 Error

2006-02-14 Thread Sean Dilda
Dave Shield wrote: On Tue, 2006-02-14 at 20:08 +0530, [EMAIL PROTECTED] wrote: Thanks for ur inputs count.high = lval&0x; 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'

RE: COUNTER64 Error

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 20:08 +0530, [EMAIL PROTECTED] wrote: > Thanks for ur inputs > count.high = lval&0x; 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 n

RE: COUNTER64 Error

2006-02-14 Thread sasikumar.bodathula
Title: RE: COUNTER64 Error Thanks for ur inputs I tried somthing like this long long lval; struct counter64 count; count.low = lval&0x; count.high = lval&0x; this is also working. Rgards, Sasikumar. -Original Message- From: Dave Shield

RE: COUNTER64 Error

2006-02-14 Thread Dave Shield
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 > whi

RE: COUNTER64 Error

2006-02-14 Thread sasikumar.bodathula
Title: RE: COUNTER64 Error Dave,     IN the "struct counter64" it has two value low and high as attributes. Is there any example code which comes with net-snmp src package which i can refer. Rgards, Sasikumar. -Original Message- From: Dave Shield [mailto:[EMAIL PROTEC

Re: COUNTER64 Error

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 16:49 +0530, [EMAIL PROTECTED] wrote: > Hi All, > I am using ASN_COUNTER64 as type in the function > 'snmp_set_var_typed_value' the value is of type > "unsigned long long int" No - it doesn't work that way. The ASN_COUNTER64 type requires a "struct counter64" value, not