mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Timers: Fix TBF and some last remains
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
log_rl(&p->log_lsa_tbf, L_REMOTE "%s: " msg, p->p.name, args)
|
||||
|
||||
#define LOG_LSA2(msg, args...) \
|
||||
do { if (! p->log_lsa_tbf.mark) \
|
||||
do { if (! p->log_lsa_tbf.drop) \
|
||||
log(L_REMOTE "%s: " msg, p->p.name, args); } while(0)
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user