From 574b2324275d3292e98a8e329f791eb5c799f7f2 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 28 Nov 2017 17:06:10 +0100 Subject: Timers: Fix TBF and some last remains --- proto/rip/packets.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'proto/rip') diff --git a/proto/rip/packets.c b/proto/rip/packets.c index 1518dd3f..4925ca36 100644 --- a/proto/rip/packets.c +++ b/proto/rip/packets.c @@ -189,7 +189,10 @@ rip_update_csn(struct rip_proto *p UNUSED, struct rip_iface *ifa) * have the same CSN. We are using real time, but enforcing monotonicity. */ if (ifa->cf->auth_type == RIP_AUTH_CRYPTO) - ifa->csn = (ifa->csn < (u32) now_real) ? (u32) now_real : ifa->csn + 1; + { + u32 now_real = (u32) (current_real_time() TO_S); + ifa->csn = (ifa->csn < now_real) ? now_real : ifa->csn + 1; + } } static void -- cgit v1.2.3