|Subject:||[lwip-devel] Bug in SNTP POLL mode?|
|Date:||Mon, 3 Apr 2017 09:55:47 +0000|
There is few issues with SNTP. It propably should not handle SNTP frames (in POLL mode) if it has not requested time update?
This because in current code, while in POLL mode waiting INTERVAL to send new request, a "reply" (without request) is received and timers are stopped:
- If the frame has sender address which is not "sntp_last_server_address", SNTP will use err code ERR_TIMEOUT and does not resume timers => Time update request is never sent.
Also when we are expecting a reply, it should be made sure that in case of invalid reply, we either resume timers and wait for proper reply or restart timers to make sure we poll again.
|[Prev in Thread]||Current Thread||[Next in Thread]|