mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-06-05 21:04:45 +00:00
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:
committed by
Abhik Roy
parent
fadb910946
commit
a7e0a50c4d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user