Re: working with counter64

2010-05-14 Thread Wes Hardaker
> On Wed, 12 May 2010 09:32:59 +0200 (CEST), Tomas Macek > said: TM> i64 = vp->val.counter64->low; TM> i64 |= vp->val.counter64->high << 32; TM> the proper implementation on 64bit system? Or how should I work with TM> counter64? Well, that will work but you should be using an unsigned

working with counter64

2010-05-12 Thread Tomas Macek
I'm developing an app using net-snmp library version 5.5 on 64bit Linux. The reading is asynchronous. I have this piece of code: if (pdu->errstat == SNMP_ERR_NOERROR) { while (vp) { snprint_variable(buf, sizeof(buf), vp->name, vp->name_length, v