busybox/networking
Denys Vlasenko e4caf1dd9c ntpd: retry initial DNS resolution (forever, no timeout for now).
Some users start ntpd on boot, and don't babysit it. If it dies because
DNS is not yet up and therefore NTP servers can't be found, users are
not happy.

Example behavior with a peer name which can't be resolved:

ntpd: bad address 'qwe.rty.ghj.kl'
...5 sec...
ntpd: bad address 'qwe.rty.ghj.kl'
ntpd: bad address 'qwe.rty.ghj.kl'
ntpd: bad address 'qwe.rty.ghj.kl'
ntpd: bad address 'qwe.rty.ghj.kl'
ntpd: bad address 'qwe.rty.ghj.kl'
ntpd: bad address 'qwe.rty.ghj.kl'
ntpd: bad address 'qwe.rty.ghj.kl'
ntpd: bad address 'qwe.rty.ghj.kl'
ntpd: bad address 'qwe.rty.ghj.kl'
...

Based on the patch by Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>

function                                             old     new   delta
resolve_peer_hostname                                  -      81     +81
ntpd_main                                           1130    1061     -69
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 81/-69)             Total: 12 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-06-06 02:26:49 +02:00
..
libiproute ip: fix problem on mips64 n64 big endian musl systems 2016-04-24 17:39:02 +02:00
ssl_helper networking/ssl_helper: experimental matrixssl-based ssl helper 2014-02-23 23:31:13 +01:00
ssl_helper-wolfssl ssl_helper: tweaks discovered while building 32-bit version 2015-10-07 02:00:11 +02:00
udhcp *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
arp.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
arping.c arping: avoid use of ether_ntoa(). Closes 8926 2016-05-26 21:35:46 +02:00
brctl.c libiproute: rename invarg(a,b) to invarg_1_to_2(a,b) 2015-10-14 13:21:01 +02:00
Config.src inetd: make FEATURE_INETD_RPC off by default 2015-10-25 20:10:46 +01:00
dnsd.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
ether-wake.c ether-wake: shorten help text, reduce packet buffer size 2013-10-14 19:04:20 +02:00
ftpd.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
ftpgetput.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
hostname.c hostname: do not use gethostbyname() for "hostname -s" 2013-12-17 19:13:45 +01:00
httpd_indexcgi.c httpd_indexcgi.c: fix compile failure 2012-09-03 12:20:10 +02:00
httpd_post_upload.txt httpd_post_upload.txt example: handle binary files too 2009-11-13 09:37:50 +01:00
httpd_ssi.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
httpd.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
ifconfig.c fix build error with musl libc due to if_slip.h 2013-08-15 09:54:51 +02:00
ifenslave.c join some common strings, -400 bytes 2015-10-08 11:24:44 +02:00
ifplugd.c ifplugd: discovered why it needed net/ethernet.h: just for ETH_ALEN 2015-10-07 02:02:56 +02:00
ifupdown.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
inetd.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
interface.c Revert "networking: properly initialize ipv6 scope id for printing it" 2016-03-29 19:27:00 +02:00
ip.c networking: add 'ip neigh' command 2015-10-14 12:53:47 +02:00
ipcalc.c ipcalc: fix trivial usage message 2015-08-15 21:15:27 +02:00
isrv_identd.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
isrv.c libbb: introduce kernel-style BUILD_BUG_ON() 2015-10-13 14:50:20 +02:00
isrv.h fixlet for the previous commit #2 2014-01-09 20:09:43 +01:00
Kbuild.src wget: make openssl/ssl_helper choice configurable 2015-10-07 01:39:40 +02:00
nameif.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
nbd-client.c *: more BUILD_BUG_ON conversions 2015-10-13 17:17:34 +02:00
nc_bloaty.c libbb: add setsockopt_foo helpers 2015-08-24 20:00:17 +02:00
nc.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
netstat.c typo fixes 2015-05-25 13:46:36 +02:00
nslookup.c nslookup: set default DNS server again. Hopefully helps with 675 2013-06-27 01:09:51 +02:00
ntpd.c ntpd: retry initial DNS resolution (forever, no timeout for now). 2016-06-06 02:26:49 +02:00
ntpd.diff ntpd: add experimental patch 2016-03-04 07:36:04 +01:00
ping.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
pscan.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
route.c route: fix bogus read error when route table is empty 2015-02-04 10:40:10 +01:00
slattach.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
tc.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
tcpudp_perhost.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
tcpudp_perhost.h *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
tcpudp.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
telnet.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
telnetd.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
telnetd.ctrlSQ.patch *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
tftp.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
traceroute.c Replace a few more bb_info_msg's by bb_error_msg or printf 2016-03-30 16:20:28 +02:00
tunctl.c Replace a few more bb_info_msg's by bb_error_msg or printf 2016-03-30 16:20:28 +02:00
vconfig.c vconfig: fix help text; small code shrink. Closes 4658 2012-01-16 04:00:37 +01:00
wget.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
whois.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
zcip.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00