Skip to content

Commit c6f3134

Browse files
Jeppe Odgaardkartben
authored andcommitted
net: config: sntp: add resync interval range
RFC4330 section 10 states: A client MUST NOT under any conditions use a poll interval less then 15 seconds. Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
1 parent 09c9ba7 commit c6f3134

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/lib/config/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,12 @@ if NET_CONFIG_SNTP_INIT_RESYNC
248248
config NET_CONFIG_SNTP_INIT_RESYNC_INTERVAL
249249
int "SNTP resync interval (sec)"
250250
default 3600
251+
range 15 $(UINT32_MAX)
251252

252253
config NET_CONFIG_SNTP_INIT_RESYNC_ON_FAILURE_INTERVAL
253254
int "SNTP resync interval (sec) on failure"
254255
default NET_CONFIG_SNTP_INIT_RESYNC_INTERVAL
256+
range 15 $(UINT32_MAX)
255257
help
256258
If the SNTP request fails, then this is the interval to wait
257259
before trying again.

0 commit comments

Comments
 (0)