When resolving the "constraint" (singular), store all returned IP
authorreyk <reyk@openbsd.org>
Sun, 17 May 2015 18:31:32 +0000 (18:31 +0000)
committerreyk <reyk@openbsd.org>
Sun, 17 May 2015 18:31:32 +0000 (18:31 +0000)
commit3303745ec61f1ec5879d63779fb84bf229a2c4e8
tree8bf75ad7bad169c494545a0cd83b991f943122da
parentede6322c77eb3d430d5c554c21e4af59f7d1d0ee
When resolving the "constraint" (singular), store all returned IP
addresses and try one after another until the connection succeeded -
based on the existing mechanism of "server".  "constraint" previously
only tried to connect to the first returned address, aborted and
skipped the constraint on failure.  In difference to "constraints"
(plural), it still only connects to one address at a time and not to
all of them at once.

Pointed out by rpe@
OK rpe@ deraadt@
usr.sbin/ntpd/constraint.c
usr.sbin/ntpd/ntpd.h
usr.sbin/ntpd/parse.y