BIND 10 #2986: Auth statistics counters become minus (proposal of 64bit counters and CC library)

BIND 10 Development do-not-reply at isc.org
Mon Jul 15 12:13:17 UTC 2013


#2986: Auth statistics counters become minus (proposal of 64bit counters and CC
library)
-------------------------------------+-------------------------------------
            Reporter:  fujiwara      |                        Owner:
                Type:  defect        |                       Status:  new
            Priority:  medium        |                    Milestone:  New
           Component:  statistics    |  Tasks
            Keywords:                |                   Resolution:
           Sensitive:  0             |                 CVSS Scoring:
         Sub-Project:  DNS           |              Defect Severity:  N/A
Estimated Difficulty:  5             |  Feature Depending on Ticket:
         Total Hours:  0             |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
Description changed by shane:

Old description:

> Statistics counters are unsigned int (32bit) and integer values in CC are
> signed int (32bit).
> If a counter value becomes 2147483648 (2^31), -2147483648 is sent to
> stats daemon.
>
> One of solutions is to change "integer" type to signed 64bit in
> src/lib/cc/data.h and add unsigned 64bit support to JSON output. Also
> change counter type to unsigned 64bit int.
>
> python may treat 64bit unsigned integer numbers.

New description:

 Statistics counters are unsigned int (32bit) and integer values in CC are
 signed int (32bit).
 If a counter value becomes 2147483648 (2^31^), -2147483648 is sent to
 stats daemon.

 One of solutions is to change "integer" type to signed 64bit in
 src/lib/cc/data.h and add unsigned 64bit support to JSON output. Also
 change counter type to unsigned 64bit int.

 python may treat 64bit unsigned integer numbers.

--

-- 
Ticket URL: <http://bind10.isc.org/ticket/2986#comment:8>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list