connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] timeserver not resolving ntp server
@ 2022-02-28 12:49 Nicky Geerts
  2022-02-28 12:49 ` [PATCH 1/2] timeserver: refresh the nameservers before each lookup Nicky Geerts
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Nicky Geerts @ 2022-02-28 12:49 UTC (permalink / raw)
  To: connman; +Cc: Nicky Geerts

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-03-07  9:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-28 12:49 [PATCH 0/2] timeserver not resolving ntp server Nicky Geerts
2022-02-28 12:49 ` [PATCH 1/2] timeserver: refresh the nameservers before each lookup Nicky Geerts
2022-02-28 12:49 ` [PATCH 2/2] timeserver: include the reason why a timeserver sync is requested Nicky Geerts
2022-03-04  8:56 ` [PATCH 0/2] timeserver not resolving ntp server Daniel Wagner
2022-03-07  8:44 ` [PATCH 1/2] timeserver: refresh the nameservers before each lookup Nicky Geerts
2022-03-07  9:19   ` Daniel Wagner
2022-03-07  8:44 ` [PATCH 2/2] timeserver: include the reason why a timeserver sync is requested Nicky Geerts
2022-03-07  9:20   ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).