summaryrefslogtreecommitdiff
path: root/lib/lib_errors.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-25 08:19:07 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-02-25 08:19:07 -0500
commite2eff5c3b13ee31ddc1b80d828ce12fba64f6a3b (patch)
tree597ebb5a7ff51609a0b7a444b9001ad122914169 /lib/lib_errors.h
parent41ff140670e1c1a0cfbea682000a1cfe3a0cc1a0 (diff)
lib: Add a Dev catch for when a timer is set for > 1 year
Since there are timers that are created based upon doing some math and we know that unsigned values when doing math and we accidently subtract a larger number from a smaller number causes the unsigned number to wrap to very large numbers, let's put in a small catch in place to see if there are any places in the system that mistakes are made and FRR is accidently creating a problem for itself. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/lib_errors.h')
-rw-r--r--lib/lib_errors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib_errors.h b/lib/lib_errors.h
index 64ac6c1ceb..91f206f74a 100644
--- a/lib/lib_errors.h
+++ b/lib/lib_errors.h
@@ -48,6 +48,7 @@ enum lib_log_refs {
EC_LIB_SLOW_THREAD_WALL,
EC_LIB_STARVE_THREAD,
EC_LIB_NO_THREAD,
+ EC_LIB_TIMER_TOO_LONG,
EC_LIB_RMAP_RECURSION_LIMIT,
EC_LIB_BACKUP_CONFIG,
EC_LIB_VRF_LENGTH,