Skip to content

timeserver not resolving ntp server

Nicky Geerts connman 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2timeserver: refresh the nameservers before each lookupsrc/timeserver.c+51 -420 replies
1/2timeserver: refresh the nameservers before each lookupsrc/timeserver.c+50 -411 reply
2/2timeserver: include the reason why a timeserver sync is requestedinclude/timeserver.h src/connman.h src/service.c +1 more+30 -80 replies
2/2timeserver: include the reason why a timeserver sync is requestedinclude/timeserver.h src/connman.h src/service.c +1 more+29 -71 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] timeserver not resolving ntp server

This is a series of fixes for an issue where the timeserver cannot resolve the ntp servers.

1. when the UDP g_io_channel in the nameserver is closed or in an invalid state (for example by a misbehaving external DNS server, during a start up sequence), DNS resolve will fail for the ntp server, and won't ever be able to recover

2. when a service switches from the autoconf link local address to an address configured by DHCP, the timeserver will drop the notification, and the nameservers will not be reloaded in the timeserver's resolv instance.

Nicky Geerts (2):
timeserver: refresh the nameservers before each lookup
timeserver: include the reason why a timeserver sync is requested

 include/timeserver.h |   7 +++
 src/connman.h        |   2 +-
 src/service.c        |   4 +-
 src/timeserver.c     | 118 ++++++++++++++++++++++++++-----------------
 4 files changed, 81 insertions(+), 50 deletions(-)
Signature · 1 line
2.25.1