| Summary: | The ntpd server not work with windows. | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | alex <xinglp> |
| Component: | Networking | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | busybox-cvs, paul, xinglp |
| Priority: | P5 | ||
| Version: | 1.19.x | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
alex
2012-04-19 07:18:09 UTC
*** Bug 5738 has been marked as a duplicate of this bug. *** I just tested the "Internet Time" feature in Windows 7, and determined: 1) It uses NTPv3 2) The busybox ntpd is responding as NTPv7 3) Modifying this line in ntpd.c fixes the problem: - msg.m_status = G.stratum < MAXSTRAT ? G.ntp_status : LI_ALARM; + msg.m_status = G.stratum < MAXSTRAT ? (G.ntp_status & LI_MASK) : LI_ALARM; Could someone apply this fix, please? Fixed in git: commit b7841cf7b919b16d1bd4619154bf7cb4c22b4ccd Author: Paul Marks <paul@pmarks.net> Date: Mon Jan 14 02:39:10 2013 +0100 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> |