Hi all, after some off-list discussing and debugging the code now also handles out-of-sync dc nodes. Other changes are minor style changes. Also the error codes are now named and should show in which section the error occured. You can see a diff between the versions on my github repo: https://github.com/davidvoit/cifs-utils/compare/linux-cifs-v3..linux-cifs-v4 Kind Regards, David David Voit (1): Implement CLDAP Ping to find the closest site Makefile.am | 15 ++- cldap_ping.c | 346 +++++++++++++++++++++++++++++++++++++++++++++++++ cldap_ping.h | 14 ++ mount.cifs.c | 5 +- resolve_host.c | 258 +++++++++++++++++++++++++++++++----- resolve_host.h | 6 +- 6 files changed, 606 insertions(+), 38 deletions(-) create mode 100644 cldap_ping.c create mode 100644 cldap_ping.h -- 2.44.0