Commit Graph

176 Commits

Author SHA1 Message Date
christos b8bf2c7dc6 Don't bother calling log for values <= 1... XXX: should use ilog() instead.
Fixes vax.
2015-12-02 02:04:06 +00:00
he 4b2b748c50 As far as I (and my compiler) can tell, there's no need to cast
the arg to strncmp().
2015-11-30 10:37:25 +00:00
christos 01186a5b06 PR/50426: Dave Tyson: Fix ntp reported version. 2015-11-13 20:31:27 +00:00
christos af12ab5e93 merge conflicts 2015-10-23 18:06:19 +00:00
christos a6f3f22f24 Import ntp 4.2.8p4 2015-10-23 17:47:36 +00:00
christos 37ecb8c3ab introduce an NTP_SYSLOG macro. 2015-10-14 15:55:42 +00:00
christos aa4b4f79ae we set SIGCHLD to SIG_IGN so we are not going to generate zombies so it
will be an error to wait.
2015-07-20 15:35:00 +00:00
joerg 613db6a115 Don't use fabs on integers. 2015-07-20 13:13:31 +00:00
christos be80d735d2 PR/50048: Martin Husemann: Avoid reaping the child twice by setting c->pid = 0
after the wait.
2015-07-17 15:17:07 +00:00
kardel 36c7e56938 backport fix for bug 2867 - ntpd with autokey active crashed by 'ntpq -crv' 2015-07-10 21:31:19 +00:00
kardel b10821988e update imported version to reality 2015-07-10 21:27:49 +00:00
christos 5d681e9934 merge conflicts.. 2015-07-10 14:20:28 +00:00
christos 01c0ef3e3a Import ntp 4.2.8p3 2015-07-10 13:11:02 +00:00
christos f17b710f3d Import ntp 4.2.8p3 2015-07-10 13:02:43 +00:00
kardel 19ad638d83 fix ifstats command by relaxing invalid sanity check - ntp bug #2860 2015-06-28 15:37:37 +00:00
roy fc8c67611d Don't bind to IN_IFF_TENTATIVE or IN_IFF_DETACHED addresses. 2015-05-02 14:46:51 +00:00
christos d3e82457ff CID 1269537: Unreachable code 2015-04-13 17:45:19 +00:00
christos 7476e6e4d2 merge conflicts 2015-04-07 17:34:18 +00:00
christos b5bbe2e3e7 ---
(4.2.8p2) 2015/04/07 Released by Harlan Stenn <stenn@ntp.org>
(4.2.8p2-RC3) 2015/04/03 Released by Harlan Stenn <stenn@ntp.org>

* [Bug 2763] Fix for different thresholds for forward and backward steps.
---
(4.2.8p2-RC2) 2015/04/03 Released by Harlan Stenn <stenn@ntp.org>

* [Bug 2592] FLAG_TSTAMP_PPS cleanup for refclock_parse.c.
* [Bug 2769] New script: update-leap
* [Bug 2769] cleannup for update-leap
* [Bug 2788] New flag -G (force_step_once).
* [Bug 2794] Clean up kernel clock status reports.
* [Bug 2795] Cannot build without OpenSLL (on Win32).
  Provided a Win32 specific wrapper around libevent/arc4random.c.
  fixed some minor warnings.
* [Bug 2796] ntp-keygen crashes in 'getclock()' on Win32.
* [Bug 2797] ntp-keygen trapped in endless loop for MD5 keys
  on big-endian machines.
* [Bug 2798] sntp should decode and display the leap indicator.
* Simple cleanup to html/build.html
---
(4.2.8p2-RC1) 2015/03/30 Released by Harlan Stenn <stenn@ntp.org>

* [Bug 2794] Don't let reports on normal kernel status changes
  look like errors.
* [Bug 2788] New flag -G (force_step_once).
* [Bug 2592] Account for PPS sources which can provide an accurate
  absolute time stamp, and status information.
  Fixed indention and removed trailing whitespace.
* [Bug 1787] DCF77's formerly "antenna" bit is "call bit" since 2003.
* [Bug 1960] setsockopt IPV6_MULTICAST_IF: Invalid argument.
* [Bug 2346] "graceful termination" signals do not do peer cleanup.
* [Bug 2728] See if C99-style structure initialization works.
* [Bug 2747] Upgrade libevent to 2.1.5-beta.
* [Bug 2749] ntp/lib/NTP/Util.pm needs update for ntpq -w, IPv6, .POOL. .
* [Bug 2751] jitter.h has stale copies of l_fp macros.
* [Bug 2756] ntpd hangs in startup with gcc 3.3.5 on ARM.
* [Bug 2757] Quiet compiler warnings.
* [Bug 2759] Expose nonvolatile/clk_wander_threshold to ntpq.
* [Bug 2763] Allow different thresholds for forward and backward steps.
* [Bug 2766] ntp-keygen output files should not be world-readable.
* [Bug 2767] ntp-keygen -M should symlink to ntp.keys.
* [Bug 2771] nonvolatile value is documented in wrong units.
* [Bug 2773] Early leap announcement from Palisade/Thunderbolt
* [Bug 2774] Unreasonably verbose printout - leap pending/warning
* [Bug 2775] ntp-keygen.c fails to compile under Windows.
* [Bug 2777] Fixed loops and decoding of Meinberg GPS satellite info.
  Removed non-ASCII characters from some copyright comments.
  Removed trailing whitespace.
  Updated definitions for Meinberg clocks from current Meinberg header files.
  Now use C99 fixed-width types and avoid non-ASCII characters in comments.
  Account for updated definitions pulled from Meinberg header files.
  Updated comments on Meinberg GPS receivers which are not only called GPS16x.
  Replaced some constant numbers by defines from ntp_calendar.h
  Modified creation of parse-specific variables for Meinberg devices
  in gps16x_message().
  Reworked mk_utcinfo() to avoid printing of ambiguous leap second dates.
  Modified mbg_tm_str() which now expexts an additional parameter controlling
  if the time status shall be printed.
* [Sec 2779] ntpd accepts unauthenticated packets with symmetric key crypto.
* [Sec 2781] Authentication doesn't protect symmetric associations against
  DoS attacks.
* [Bug 2783] Quiet autoconf warnings about missing AC_LANG_SOURCE.
* [Bug 2789] Quiet compiler warnings from libevent.
* [Bug 2790] If ntpd sets the Windows MM timer highest resolution
  pause briefly before measuring system clock precision to yield
  correct results.
* Comment from Juergen Perlinger in ntp_calendar.c to make the code clearer.
* Use predefined function types for parse driver functions
  used to set up function pointers.
  Account for changed prototype of parse_inp_fnc_t functions.
  Cast parse conversion results to appropriate types to avoid
  compiler warnings.
  Let ioctl() for Windows accept a (void *) to avoid compiler warnings
  when called with pointers to different types.
---
(4.2.8p1) 2015/02/04 Released by Harlan Stenn <stenn@ntp.org>

* Update the NEWS file.
* [Sec 2671] vallen in extension fields are not validated.
---
(4.2.8p1-RC2) 2015/01/29 Released by Harlan Stenn <stenn@ntp.org>

* [Bug 2627] shm refclock allows only two units with owner-only access
  rework: reverted sense of mode bit (so default reflects previous
  behaviour) and updated ducumentation.
* [Bug 2732] - Leap second not handled correctly on Windows 8
  use 'GetTickCount()' to get the true elapsed time of slew
  (This should work for all versions of Windows >= W2K)
* [Bug 2738] Missing buffer initialization in refclocK_parse.c::parsestate().
* [Bug 2739] Parse driver with PPS enabled occasionally evaluates
  PPS timestamp with wrong sign.
  Removed some German umlauts.
* [Bug 2740] Removed some obsolete code from the parse driver.
* [Bug 2741] Incorrect buffer check in refclocK_parse.c::parsestatus().
---
(4.2.8p1-RC1) 2015/01/24 Released by Harlan Stenn <stenn@ntp.org>

* Start the RC for 4.2.8p1.
* [Bug 2187] Update version number generation scripts.
* [Bug 2617] Fix sntp Usage documentation section.
* [Sec 2672] Code cleanup: On some OSes ::1 can be spoofed...
* [Bug 2736] Show error message if we cannot open the config file.
* Copyright update.
* Fix the package name.
---
(4.2.8p1-beta5) 2015/01/07 Released by Harlan Stenn <stenn@ntp.org>

* [Bug 2695] Windows build: __func__ not supported under Windows.
* [Bug 2728] Work around C99-style structure initialization code
  for older compilers, specifically Visual Studio prior to VS2013.
---
(4.2.8p1-beta4) 2015/01/04 Released by Harlan Stenn <stenn@ntp.org>

* [Bug 1084] PPSAPI for ntpd on Windows with DLL backends
* [Bug 2695] Build problem on Windows (sys/socket.h).
* [Bug 2715] mdnstries option for ntp.conf from NetBSD.
* Fix a regression introduced to timepps-Solaris.h as part of:
  [Bug 1206] Required compiler changes for Windows
  (4.2.5p181) 2009/06/06
---
(4.2.8p1-beta3) 2015/01/02 Released by Harlan Stenn <stenn@ntp.org>

* [Bug 2627] shm refclock allows only two units with owner-only access
  Use mode bit 0 to select public access for units >= 2 (units 0 & 1 are
  always private.
* [Bug 2681] Fix display of certificate EOValidity dates on 32-bit systems.
* [Bug 2695] 4.2.8 does not build on Windows.
* [bug 2700] mrulist stopped working in 4.2.8.
* [Bug 2706] libparse/info_trimble.c build dependencies are broken.
* [Bug 2713] variable type/cast, parameter name, general cleanup from NetBSD.
* [Bug 2714] libevent may need to be built independently of any build of sntp.
* [Bug 2715] mdnstries option for ntp.conf from NetBSD.
---
(4.2.8p1-beta2) 2014/12/27 Released by Harlan Stenn <stenn@ntp.org>

* [Bug 2674] Install sntp in sbin on NetBSD.
* [Bug 2693] ntp-keygen doesn't build without OpenSSL and sntp.
* [Bug 2707] Avoid a C90 extension in libjsmn/jsmn.c.
* [Bug 2709] see if we have a C99 compiler (not yet required).
---
(4.2.8p1-beta1) 2014/12/23 Released by Harlan Stenn <stenn@ntp.org>

* [Sec 2672] On some OSes ::1 can be spoofed, bypassing source IP ACLs.
* [Bug 2693] ntp-keygen doesn't build without OpenSSL.
* [Bug 2697] IN6_IS_ADDR_LOOPBACK build problems on some OSes.
* [Bug 2699] HAVE_SYS_SELECT_H is misspelled in refclock_gpsdjson.c.
---
2015-04-07 16:48:53 +00:00
christos f9546f4b11 put back initialization of the buffer which was accidentally removed.
XXX: pullup-7.
2015-01-27 02:37:18 +00:00
joerg 16af9e03ea Use positive checks for GCC 4.1. Deal with missing HAVE_GCC. 2014-12-23 20:26:30 +00:00
christos d1118a5e47 Change the conditional from >= 45 to != 4 to handle the non-gcc case. 2014-12-23 20:19:08 +00:00
christos 41cafa369b Putting () around conditionals avoids the error when the variables are
undefined, OTOH it does the wrong thing when comparing when "no".
2014-12-23 19:11:14 +00:00
christos 18053c39af Fix for gcc-4.1 2014-12-23 19:05:58 +00:00
christos 988fc89e95 fixes for gcc-4.1 2014-12-23 19:04:37 +00:00
christos de935cd2ad Fixes for gcc-4.1 2014-12-23 19:04:18 +00:00
christos 1cff2a42a0 fix for -5, MKREPRO is not always defined 2014-12-23 18:56:15 +00:00
joerg 7a390569d2 myasprintf (wtf) passes down a format string, so use __printflike. 2014-12-23 15:47:32 +00:00
christos 8de392a9c0 avoid shadowing of recv. 2014-12-22 04:23:58 +00:00
christos 22b6c4fc55 avoid shadowing of log2 on some platforms. 2014-12-22 04:21:47 +00:00
christos abc7bdd304 Since we've added the mdnstries keyword, we need to regenerate the
ntp_parser.[ch] files, otherwise we get syntax errors. Our yacc seems
to be producing a working parser now, so let's use it.
2014-12-20 16:52:21 +00:00
prlw1 f44489f8dc MKINET6=no build fixes
http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html
2014-12-20 13:15:48 +00:00
uebayasi 1104d021af Fix signed vs unsigned errors. 2014-12-20 08:38:47 +00:00
christos eb7b95c740 finish import 2014-12-20 02:59:24 +00:00
christos ccbc10b41f I will let others decide if we should grow this wart... 2014-12-19 20:48:55 +00:00
christos 79fa4578d4 No, bash is not the posix shell. Why do you need the shell anyway? 2014-12-19 20:46:47 +00:00
christos ea66d79595 Merge conflicts 2014-12-19 20:43:14 +00:00
christos b8ecfcfef0 Import ntp 4.2.8 2014-12-19 20:37:31 +00:00
joerg 5d029cc2d6 Replace very question pointer games to override const, mark the member
writeable when inside the guts of the library.
2014-11-23 01:47:59 +00:00
dholland b7b7574d3b Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 19:22:41 +00:00
mrg ac641cb906 remove remaining makefile support for GCC < 45 that i found. 2014-06-14 20:49:36 +00:00
kardel b538a8f986 remove stray 'return 0;' that effectively disabled atouint().
Hi Christos!
2014-04-01 17:34:44 +00:00
joerg f866147165 offs_from_utc is known to be small, so explicitly cast it to int. 2014-02-27 18:12:41 +00:00
joerg 39ea0713df Use abs for difference of integers. 2014-02-27 18:12:11 +00:00
joerg 7088bf673b Use labs for long arguments and fabs for double ones. 2014-02-27 18:11:41 +00:00
mlelstv ba1d7138dc stoa() already includes the scope, no need to print it twice. 2014-01-26 02:21:08 +00:00
matt bf70954af3 Fix awk programs to use $$ so make doesn't eat each $ 2014-01-24 23:42:31 +00:00
joerg 4a937800dd Support LLVM build. 2014-01-23 14:06:28 +00:00
kardel 70e8e53eb7 fix voluntary self-destruct (kill(0, SIGUP)) after successful int_res run and interface change 2014-01-20 19:03:33 +00:00
christos b40d27d77a use the old style no-error for gcc-4.1 2014-01-20 01:52:54 +00:00