Hi, (repost due to using a non-subscribed address)
I have attached a patch for the kannel code which make the internal type of the counter object an 'unsigned long'. The advantage is that it wraps by itself and we have 1 bit more in the value of the counter (32 bits). :-)) I noticed also that sometimes the value of the counter returned by the accessor-functions used already 'unsigned long'. I have also added a 'counter_increase_with' value for usage to increase counters by more then 1. This is when one would count for instance the total bytes of the messages sent. Besdies I have a question; why is in most cases the counter value retrieved and stored elsewhere. One could directly get the value of the counter by just keeping the reference to it in those placed where now this value is 'copied'. cheers, Harrie Internet Management Consulting tel: +39-3474932300 / +31-625357135 mailto:[EMAIL PROTECTED] http ://www.mod-snmp.com/
counter.patch
Description: Binary data