busybox/networking
Paul Marks b7841cf7b9 ntpd: fix incorrect m_status field in outgoing packets. Closes 5120
When using busybox ntpd with an NTPv3 client and NTPv4 server (or vice
versa), the version numbers can be incorrectly ORed together, yielding
the bogus value of "NTPv7".  This makes ntpd unusable with clients
such as Chrony and Windows "Internet Time".

This patch avoids the version mangling, by copying only the Leap
Indicator bits from the server's status field.

Signed-off-by: Paul Marks <paul@pmarks.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14 02:39:10 +01:00
..
libiproute Fix compile failure in ll_proto.c 2012-09-03 11:41:30 +02:00
udhcp udhcpc[6]: allow discover_retries == 0 (infinite) 2012-09-27 16:22:24 +02:00
arp.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
arping.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
brctl.c brctl: fix description and usage 2012-09-29 16:43:33 +02:00
Config.src brctl: fix description and usage 2012-09-29 16:43:33 +02:00
dnsd.c typo fixes 2011-07-08 05:47:49 +02:00
ether-wake.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
ftpd.c ftpd: free allocated string on error path 2012-07-11 00:26:24 +02:00
ftpgetput.c ftp{get,put}: tweak help text 2012-03-19 12:22:57 +01:00
hostname.c hostname: make -i not emit extra trailing space 2012-04-01 16:52:21 +02: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 whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
ifconfig.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
ifenslave.c ifenslave: fix missing close paren 2012-12-26 17:12:26 -05:00
ifplugd.c CONFIG_PID_FILE_PATH: new configuration option for pidfile paths 2012-12-19 15:53:33 -05:00
ifupdown.c ifupdown: code shrink 2012-11-09 17:16:40 +01:00
inetd.c CONFIG_PID_FILE_PATH: new configuration option for pidfile paths 2012-12-19 15:53:33 -05:00
interface.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
ip.c iproute: fix help text 2011-12-06 18:59:55 +01:00
ipcalc.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
isrv_identd.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
isrv.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
isrv.h *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
Kbuild.src ping: add -t TTL option 2010-11-28 23:01:18 +01:00
nameif.c Replaced __u32 etc. with standard uint32_t style types 2011-06-10 05:34:05 +02:00
nbd-client.c mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo 2011-01-18 13:58:01 +01:00
nc_bloaty.c nc: support "-<other_opts>e PROG" form of -e option 2012-03-19 01:17:36 +01:00
nc.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
netstat.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
nslookup.c move remaining help text from include/usage.src.h 2011-04-11 03:29:49 +02:00
ntpd_simple.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
ntpd.c ntpd: fix incorrect m_status field in outgoing packets. Closes 5120 2013-01-14 02:39:10 +01:00
ping.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
pscan.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
route.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
slattach.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
tc.c Replaced __u32 etc. with standard uint32_t style types 2011-06-10 05:34:05 +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 tcpudp: simplify help text 2011-07-25 16:35:44 +02:00
telnet.c telnet: convert Enter -> CR LF in line mode too 2012-09-17 11:54:35 +02:00
telnetd.c telnet: convert CR -> CR LF, not CR -> CR NUL when sending data to server 2012-09-13 13:00:49 +02:00
telnetd.ctrlSQ.patch *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
tftp.c tftpd: fix -u USER to work with chroot. Closes 5348 2012-07-18 17:32:32 +02:00
traceroute.c networking: consolidate the IP checksum code. -129 bytes. 2011-09-07 17:55:40 +02:00
tunctl.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
vconfig.c vconfig: fix help text; small code shrink. Closes 4658 2012-01-16 04:00:37 +01:00
wget.c wget: reorder fread and poll: poll only if fread returns EAGAIN. Closes 5426 2012-09-03 12:49:30 +02:00
whois.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
zcip.c add INIT_G()'s. No code changes. 2011-09-21 01:59:15 +02:00