- DHCP: retry storm fixed

This commit is contained in:
Wiesner András 2024-04-23 14:00:58 +02:00
parent d8a657a88d
commit 612cb471d8

View File

@ -301,6 +301,7 @@ static void dhcp_process(DhcpState *s, DhcpProps *props, DhcpOption *opts) {
AlarmUserData params = {0};
s->renewAlarmId = timer_sched_rel(E.tmr, ((int64_t)dhcpLeaseTime_s) * 1000000, NULL, params);
timer_unsched(E.tmr, s->retryAlarmId);
MSG(ANSI_COLOR_BGREEN "\nDHCP done!\n" ANSI_COLOR_RESET);
MSG("IP: " ANSI_COLOR_BYELLOW);