ip_napt_maint: Fix timestamp overflow handling (2.1.3)

s_last_now was not being updated once overflow happened.
This commit is contained in:
Deomid "rojer" Ryabkov
2022-04-16 15:54:37 +01:00
committed by Abhik Roy
parent fadb910946
commit a7e0a50c4d
+2 -3
View File
@@ -1030,15 +1030,14 @@ ip_napt_maint(void)
* but it's fine for our purposes. */
t->last = now;
}
/* Skip until next tick, nothing to be done here anyway. */
return;
}
ip_napt_gc(now, false /* make_room */);
s_last_now = now;
}
static void
ip_napt_tmr(void *arg) {
ip_napt_tmr(void *arg)
{
ip_napt_maint();
sys_timeout(NAPT_TMR_INTERVAL, ip_napt_tmr, arg);
}