]> git.puffer.fish Git - matthieu/frr.git/commit
lib: always use 64-bit integers for json
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 29 Jun 2017 23:05:36 +0000 (23:05 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 29 Jun 2017 23:05:36 +0000 (23:05 +0000)
commitd849012d19f1743691a05f4c38f69e6af5110806
treeeb794af0126e4f4003d9ee7b8c6f3b57459d1d32
parentefd934cab078c715c5f647c19cebd8f85463b753
lib: always use 64-bit integers for json

json-c does not (yet) offer support for unsigned integer types, and
furthermore, the docs state that all integers are stored internally as
64-bit. So there's never a case in which we would want to limit,
implicitly or otherwise, the range of an integer when adding it to a
json object.

Among other things this fixes the display of ASN values greater than
(1/2) * (2^32 - 1)

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgpd.c
lib/json.c
lib/json.h