]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zapi_msg.c
zebra: Switch to using monotime(NULL) for re->uptime
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 11 May 2019 05:44:42 +0000 (01:44 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 11 May 2019 05:44:42 +0000 (01:44 -0400)
commit98572489ea2600cf11830a2af775dd98f572f936
tree322bdea0219501224a08283cb13a80e9592f9fb2
parent764252d0ab48563eb171e09ce9d53e249e6e8a27
zebra: Switch to using monotime(NULL) for re->uptime

The re->uptime usage of time(NULL) leaves it open to
timing changes from outside influence.  Switching
to monotime allows us to ensure that we have a timestamp
that is always increasing.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/redistribute.c
zebra/rt_netlink.c
zebra/zapi_msg.c
zebra/zebra_rib.c
zebra/zebra_vty.c