]> git.proxmox.com Git - mirror_frr.git/commit - lib/network.h
*: introduce function for sequence numbers
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 19 Jan 2023 15:16:11 +0000 (12:16 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 20 Jan 2023 18:40:28 +0000 (15:40 -0300)
commitfce7f209fce60f0d8aff7af3df3e0a5434fc456f
tree5eeb8b5b75b964ddbd3a76379c6c98c6cd5cf560
parentb6ee94b5b1f0a0652455264fa62a92ed5abbf855
*: introduce function for sequence numbers

Don't directly use `time()` for generating sequence numbers for two
reasons:
1. `time()` can go backwards (due to NTP or time adjustments)
2. Coverity Scan warns every time we truncate a `time_t` variable for
   good reason (verify that we are Y2K38 ready).

Found by Coverity Scan (CID 151981215197861519783 and 1519772)

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
eigrpd/eigrp_interface.c
lib/network.c
lib/network.h
ospf6d/ospf6_message.c
ospfd/ospf_interface.c
zebra/zebra_netns_id.c