freebsd-skq/contrib
bz 385c8843b3 In case ntp cannot resolve a hostname on startup it will queue the entry
for resolving by a child process that, upon success, will add the entry
to the config of the running running parent process.

Unfortunately there are a couple of bugs with this, fixed in various
later versions of upstream in potentially different ways due to other
code changes:

1) Upon server [-46] <FQDN> the [-46] are used as FQDN for later resolving
   which does not work.  Make sure we always pass the name (or IP there).

2) The intermediate file to carry the information to the child process
   does not know about -4/-6 restrictions, so that a dual-stacked host
   could resolve to an IPv6 address but that might be unreachable (see
   r223626) leading to no working synchronization ignoring a IPv4 record.
   Thus alter the intermediate format to also pass the address family
   (AF_UNSPEC (default), AF_INET or AF_INET6) to the child process
   depending on -4 or -6.

3) Make the child process to parse the new intermediate file format and
   save the address family for getaddrinfo() hints flags.

4) Change child to always reload resolv.conf calling res_init() before
   trying to resolve names.  This will pick up resolv.conf changes or
   new resolv.confs should they have not existed or been empty or
   unusable on ntp startup.  This fix is more conditional in upstream
   versions but given FreeBSD has res_init there is no need for the
   configure logic as well.

Approved by:	roberto
Sponsored by:	Sandvine Incorporated
MFC after:	9 days
2011-06-29 13:01:10 +00:00
..
amd Remove build timestamps from the following files: 2009-07-11 22:30:37 +00:00
bind9 Upgrade to 9.6-ESV-R4-P1, which address the following issues: 2011-05-28 00:21:28 +00:00
binutils Make GNU as recognize the ARM 'rrx' mnemonic, which can be generated by 2011-06-23 20:54:44 +00:00
bsnmp Properly detect interface's state in the LINK_STATE_UNKNOWN case. 2011-05-03 10:11:44 +00:00
bzip2 Upgrade to Bzip2 version 1.0.6. 2010-11-09 18:32:57 +00:00
com_err mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
compiler-rt Upgrade libcompiler_rt from revision 117047 to 132478. 2011-06-03 17:49:16 +00:00
cvs
dialog Don't #undef curses ERR in dialog.h. Otherwise, the macro will be 2011-06-19 08:53:16 +00:00
diff
dtc Let dtc build with FreeBSD yacc/lex. 2010-02-28 22:06:07 +00:00
ee Import ee 1.5.2 into HEAD. 2010-10-08 09:43:06 +00:00
expat Apply two vendor fixes for CVE-2009-3720. 2009-12-11 02:09:46 +00:00
file Add the ability for GDB to printout the thread name along with other 2010-11-22 14:42:13 +00:00
gcc Fix clang warnings. 2011-06-18 13:56:33 +00:00
gcclibs Fix clang compile warnings. 2011-05-22 22:14:15 +00:00
gdb - Check on target wordsize instead of compile time define if we build on 2011-06-14 15:20:30 +00:00
gdtoa Merge gdtoa-20110304. 2011-03-12 07:03:06 +00:00
gnu-sort
gperf Fix clang warnings. 2011-06-18 13:56:33 +00:00
groff Pull up all vendor changes to mdoc(7). 2011-06-08 08:08:42 +00:00
ipfilter Sync: merge r215396 through r215463 from ^/head. 2010-11-18 18:30:03 +00:00
less MFV: Update to less v444. 2011-06-09 22:52:57 +00:00
libbegemot
libpcap Incorporate vendor commit ecdc5c0a7f7591a7cd4a: 2011-06-28 00:58:12 +00:00
libreadline
libstdc++ Upgrade of base gcc and libstdc++ to the last GPLv2-licensed revision 2011-03-29 20:53:51 +00:00
llvm Upgrade our copy of llvm/clang to r132879, from upstream's trunk. 2011-06-12 18:01:31 +00:00
lukemftpd
ncurses Merge r210464 from vendor/ncurses/dist: 2010-07-25 11:48:27 +00:00
netcat MFV: nc(1) from OpenBSD 4.9. 2011-05-11 21:52:26 +00:00
ngatm mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-24 06:26:38 +00:00
ntp In case ntp cannot resolve a hostname on startup it will queue the entry 2011-06-29 13:01:10 +00:00
nvi Fixes from NetBSD for nvi visual mode: 2010-05-28 09:30:13 +00:00
ofed - Merge in OFED 1.5.3 from projects/ofed/head 2011-03-21 09:58:24 +00:00
one-true-awk Update to a 6-May-2011 release (upstreamed some of our changes). 2011-05-06 14:21:46 +00:00
openbsm [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
openpam Merge upstream r432: 2010-03-22 11:00:57 +00:00
openresolv Fix typo in manpage resolvconf.conf(5). 2011-05-01 15:46:18 +00:00
opie Change the current working directory to be inside the jail created by 2010-05-27 03:15:04 +00:00
pam_modules/pam_passwdqc
pf Update packet filter (pf) code to OpenBSD 4.5. 2011-06-28 11:57:25 +00:00
pnpinfo
sendmail Update notes regarding FreeBSD import 2011-06-14 06:44:42 +00:00
smbfs shi1_remark is in little endian format, convert it to host ordering. 2010-01-25 18:35:58 +00:00
tcp_wrappers Make these files compile with clang. 2010-07-22 18:52:29 +00:00
tcpdump Remove useless stuff. 2010-10-28 19:10:15 +00:00
tcsh Remove unused GPL files from tcsh. 2011-04-28 14:43:38 +00:00
telnet telnet: Fix infinite loop if local output generates SIGPIPE. 2010-04-30 19:52:35 +00:00
texinfo Fix stack smash problem in makeinfo, by increasing buffer sizes in 2011-05-03 14:43:16 +00:00
tnftp Merge tnftp-20100108 from the vendor branch into head. 2011-06-20 08:00:32 +00:00
top Revert r214857 pursudant to 9.0-RELEASE cycle. 2011-06-20 16:48:00 +00:00
traceroute For some reason, contrib/traceroute/traceroute.c ensures MAXHOSTNAMELEN 2011-06-26 19:03:33 +00:00
tzcode Sync code with tzcode2010m 2010-10-27 07:14:46 +00:00
tzdata MFV of tzdata2011h, r223627 2011-06-28 10:24:01 +00:00
wpa Remove unused files. 2010-11-03 10:46:39 +00:00
xz Update xz to release 5.0.1 2011-02-24 13:42:35 +00:00