COUNTER64 Error

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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" but the manager is i.e snmpget/snmpgetnext is displaying large value.

sample implemntation is 

unsigned long long int lval = 0;
lval = 21;
snmp_set_var_typed_value(request->requestvb, ASN_COUNTER64,
                                        (u_char *)&lval,
                                        sizeof(lval));

The output is:

txrxframes127.4900010.1 = Counter64: 133143986176

But the expected out put is 21.

Rgards,
Sasikumar.
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.