]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Merge shiny.ad.hartbrothers.com:C:/ntp/ntp-stable-1157
authorDave Hart <hart@ntp.org>
Tue, 14 Apr 2009 08:10:00 +0000 (08:10 +0000)
committerDave Hart <hart@ntp.org>
Tue, 14 Apr 2009 08:10:00 +0000 (08:10 +0000)
into  shiny.ad.hartbrothers.com:C:/ntp/ntp-dev-1157

bk: 49e444d8DKtwrRE-YJWxm37p6Wi-lQ

1  2 
ChangeLog
configure.ac
sntp/configure.ac

diff --cc ChangeLog
index 3ebfe866a9b389a897d30ed630635845898d7d45,50ac6cb0ec7c2e4b8152d1fb9725df55698fb068..5be7c597847c0a49f7643b59c8f91fccba75de06
+++ b/ChangeLog
 +(4.2.5p163) 2009/04/10 Released by Harlan Stenn <stenn@ntp.org>
 +(4.2.5p162) 2009/04/09 Released by Harlan Stenn <stenn@ntp.org>
 +* Documentation updates from Dave Mills.
 +* Mitigation and PPS cleanup from Dave Mills.
 +* Include (4.2.4p7-RC2)
 +* [Bug 216] New interpolation scheme for Windows eliminates 1ms jitter
 +* remove a bunch of #ifdef SYS_WINNT from portable code
 +* 64-bit time_t cleanup for building on newer Windows compilers
 +* Only set CMOS clock during ntpd exit on Windows if the computer is
 +  shutting down or restarting.
 +* [Bug 1148] NMEA reference clock improvements
 +* remove deleted gsoc_sntp/utilities.o from repository so that .o build
 +  products can be cleaned up without corrupting the repository.
 +(4.2.5p161) 2009/03/31 Released by Harlan Stenn <stenn@ntp.org>
 +* Documentation updates from Dave Mills.
 +(4.2.5p160) 2009/03/30 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1141] refclock_report missing braces cause spurious "peer event:
 +  clock clk_unspec" log entries
 +* Include (4.2.4p7-RC1)
 +(4.2.5p159) 2009/03/28 Released by Harlan Stenn <stenn@ntp.org>
 +* "bias" changes from Dave Mills.
 +(4.2.5p158) 2009/01/30 Released by Harlan Stenn <stenn@ntp.org>
 +* Fix [CID 72], a typo introduced at the latest fix to prettydate.c.
 +(4.2.5p157) 2009/01/26 Released by Harlan Stenn <stenn@ntp.org>
 +* Cleanup/fixes for ntp_proto.c and ntp_crypto.c from Dave Mills.
 +(4.2.5p156) 2009/01/19 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1118] Fixed sign extension for 32 bit time_t in caljulian() and prettydate().
 +  Fixed some compiler warnings about missing prototypes.
 +  Fixed some other simple compiler warnings.
 +* [Bug 1119] [CID 52] Avoid a possible null-dereference in ntp_crypto.c.
 +* [Bug 1120] [CID 51] INSIST that peer is non-null before we dereference it.
 +* [Bug 1121] [CID 47] double fclose() in ntp-keygen.c.
 +(4.2.5p155) 2009/01/18 Released by Harlan Stenn <stenn@ntp.org>
 +* Documentation updates from Dave Mills.
 +* CHU frequency updates.
 +* Design assertion fixes for ntp_crypto.c from Dave Mills.
 +(4.2.5p154) 2009/01/13 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 992] support interface event change on Linux from
 +  Miroslav Lichvar.
 +(4.2.5p153) 2009/01/09 Released by Harlan Stenn <stenn@ntp.org>
 +* Renamed gsoc_sntp/:fetch-stubs to gsoc_sntp/fetch-stubs to avoid
 +  file name problems under Windows.
 +  Removed German umlaut from log msg for 4.2.5p142.
 +(4.2.5p152) 2009/01/08 Released by Harlan Stenn <stenn@ntp.org>
 +* Include (4.2.4p6) 2009/01/08 Released by Harlan Stenn <stenn@ntp.org>
 +(4.2.5p151) 2008/12/23 Released by Harlan Stenn <stenn@ntp.org>
 +* Stats file logging cleanup from Dave Mills.
 +(4.2.5p150) 2008/12/15 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1099] Fixed wrong behaviour in sntp's crypto.c.
 +* [Bug 1103] Fix 64-bit issues in the new calendar code.
 +(4.2.5p149) 2008/12/05 Released by Harlan Stenn <stenn@ntp.org>
 +* Fixed mismatches in data types and OID definitions in ntpSnmpSubAgent.c
 +* added a premliminary MIB file to ntpsnmpd (ntpv4-mib.mib)
 +(4.2.5p148) 2008/12/04 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1070] Fix use of ntpq_parsestring() in ntpsnmpd.
 +(4.2.5p147) 2008/11/27 Released by Harlan Stenn <stenn@ntp.org>
 +* Update gsoc_sntp's GCC warning code.
 +(4.2.5p146) 2008/11/26 Released by Harlan Stenn <stenn@ntp.org>
 +* Update Solaris CFLAGS for gsoc_sntp.
 +(4.2.5p145) 2008/11/20 Released by Harlan Stenn <stenn@ntp.org>
 +* Deal with time.h for sntp under linux.
 +* Provide rpl_malloc() for sntp for systems that need it.
 +* Handle ss_len and socklen type for sntp.
 +* Fixes to the sntp configure.ac script.
 +* Provide INET6_ADDRSTRLEN if it is missing.
 +* [Bug 1095] overflow in caljulian.c.
 +(4.2.5p144) 2008/11/19 Released by Harlan Stenn <stenn@ntp.org>
 +* Use int32, not int32_t.
 +* Avoid the sched*() functions under OSF - link problems.
 +(4.2.5p143) 2008/11/17 Released by Harlan Stenn <stenn@ntp.org>
 +* sntp cleanup and fixes.
 +(4.2.5p142) 2008/11/16 Released by Harlan Stenn <stenn@ntp.org>
 +* Imported GSoC SNTP code from Johannes Maximilian Kuehn.
 +(4.2.5p141) 2008/11/13 Released by Harlan Stenn <stenn@ntp.org>
 +* New caltontp.c and calyearstart.c from Juergen Perlinger.
 +(4.2.5p140) 2008/11/12 Released by Harlan Stenn <stenn@ntp.org>
 +* Cleanup lint from the ntp_scanner files.
 +* [Bug 1011] gmtime() returns NULL on windows where it would not under Unix.
 +* Updated caljulian.c and prettydate.c from Juergen Perlinger.
 +(4.2.5p139) 2008/11/11 Released by Harlan Stenn <stenn@ntp.org>
 +* Typo fix to driver20.html.
 +(4.2.5p138) 2008/11/10 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 474] --disable-ipv6 is broken.
 +* IPv6 interfaces were being looked for twice.
 +* SHM driver grabs more samples, add clockstats
 +* decode.html and driver20.html updates from Dave Mills.
 +(4.2.5p137) 2008/11/01 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1069] #undef netsnmp's PACKAGE_* macros.
 +* [Bug 1068] Older versions of netsnmp do not have netsnmp_daemonize().
 +(4.2.5p136) 2008/10/27 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1078] statsdir configuration parsing is broken.
 +(4.2.5p135) 2008/09/23 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1072] clock_update should not allow updates older than sys_epoch.
 +(4.2.5p134) 2008/09/17 Released by Harlan Stenn <stenn@ntp.org>
 +* Clean up build process for ntpsnmpd.
 +(4.2.5p133) 2008/09/16 Released by Harlan Stenn <stenn@ntp.org>
 +* Add options processing to ntpsnmpd.
 +* [Bug 1062] Check net-snmp headers before deciding to build ntpsnmpd.
 +* Clean up the libntpq.a build.
 +* Regenerate ntp_parser.[ch] from ntp_parser.y
 +(4.2.5p132) 2008/09/15 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1067] Multicast DNS service registration must come after the fork
 +  on Solaris.
 +* [Bug 1066] Error messages should log as errors.
 +(4.2.5p131) 2008/09/14 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1065] Re-enable support for the timingstats file.
 +(4.2.5p130) 2008/09/13 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1064] Implement --with-net-snmp-config=progname
 +* [Bug 1063] ntpSnmpSubagentObject.h is missing from the distribution.
 +(4.2.5p129) 2008/09/11 Released by Harlan Stenn <stenn@ntp.org>
 +* Quiet some libntpq-related warnings.
 +(4.2.5p128) 2008/09/08 Released by Harlan Stenn <stenn@ntp.org>
 +* Import Heiko Gerstung's GSoC2008 NTP MIB daemon.
 +(4.2.5p127) 2008/09/01 Released by Harlan Stenn <stenn@ntp.org>
 +* Regenerate ntpd/ntp_parser.c
 +(4.2.5p126) 2008/08/31 Released by Harlan Stenn <stenn@ntp.org>
 +* Stop libtool-1.5 from looking for C++ or Fortran.
 +* [BUG 610] Documentation update for NMEA reference clock driver.
 +* [Bug 828] Fix IPv4/IPv6 address parsing.
 +* Changes from Dave Mills:
 +  Documentation updates.
 +  Fix a corner case where a frequency update was reported but not set.
 +  When LEAP_NOTINSYNC->LEAP_NOWARNING, call crypto_update() if we have
 +  crypto_flags.
 +(4.2.5p125) 2008/08/18 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 1052] Add linuxPPS support to ONCORE driver.
 +(4.2.5p124) 2008/08/17 Released by Harlan Stenn <stenn@ntp.org>
 +* Documentation updates from Dave Mills.
 +* Include (4.2.4p5) 2008/08/17 Released by Harlan Stenn <stenn@ntp.org>
 +* [Bug 861] leap info was not being transmitted.
 +* [Bug 1046] refnumtoa.c is using the wrong header file.
 +* [Bug 1047] enable/disable options processing fix.
 +* header file cleanup.
 +* [Bug 1037] buffer in subroutine was 1 byte short.
 +* configure.ac: cleanup, add option for wintime, and lay the groundwork
 +  for the changes needed for bug 1028.
 +* Fixes from Dave Mills: 'bias' and 'interleave' work.  Separate
 +  phase and frequency discipline (for long poll intervals).  Update
 +  TAI function to match current leapsecond processing.
 +* Documentation updates from Dave Mills.
 +* [Bug 1037] Use all 16 of the MD5 passwords generated by ntp-keygen.
 +* Fixed the incorrect edge parameter being passed to time_pps_kcbind in
 +  NMEA refclock driver.
 +* [Bug 399] NMEA refclock driver does not honor time1 offset if flag3 set.
 +* [Bug 985] Modifications to NMEA reference clock driver to support Accord
 +  GPS Clock.
 +* poll time updates from Dave Mills.
 +* local refclock documentation updates from Dave Mills.
 +* [Bug 1022] Fix compilation problems with yesterday's commit.
 +* Updates and cleanup from Dave Mills:
 +  I've now spent eleven months of a sabbatical year - 7 days a week, 6-10
 +  hours most days - working on NTP. I have carefully reviewed every major
 +  algorithm, examined its original design and evolution from that design.
 +  I've trimmed off dead code and briar patches and did zillions of tests
 +  contrived to expose evil vulnerabilities. The development article is in
 +  rather good shape and should be ready for prime time.
 +
 +  1. The protostats statistics files have been very useful in exposing
 +  little twitches and turns when something hiccups, like a broken PPS
 +  signal. Most of what used to be syslog messages are now repackaged as
 +  protostats messages with optional syslog as well. These can also be sent
 +  as traps which might be handy to tiggle a beeper or celltext. These, the
 +  sysstats files and cryptostats files reveal the ambient health of a busy
 +  server, monitor traffic and error counts and spot crypto attacks.
 +
 +  2. Close inspection of the clock discipline behavior at long poll
 +  intervals (36 h) showed it not doing as well as it should. I redesigned
 +  the FLL loop to improve nominal accuracy from  several tens of
 +  milliseconds to something less than ten milliseconds.
 +
 +  3. Autokey (again). The enhanced error checking was becoming a major
 +  pain. I found a way to toss out gobs of ugly fat code and replace the
 +  function with a much simpler and more comprehensive scheme. It resists
 +  bait-and-switch attacks and quickly detect cases when the protocol is
 +  not correctly synchronized.
 +
 +  4. The interface code for the kernel PPS signal was not in sync with the
 +  kernel code itself. Some error checks were duplicated and some
 +  ineffective. I found none of the PPS-capable drivers, including the atom
 +  driver, do anything when the prefer peer fails; the kernel PPS signal
 +  remains in control. The atom driver now disables the kernel PPS when the
 +  prefer peer comes bum. This is important when the prefer peer is not a
 +  reference clock but a remote NTP server.
 +
 +  5. The flake restrict bit turned out to be really interesting,
 +  especially with symmtric modes and of those especially those using
 +  Autokey. Small changes in the recovery procedures when packets are lost
 +  now avoid almost all scenarios which previously required protocol resets.
 +
 +  6. I've always been a little uncomfortable when using the clock filter
 +  with long poll intervals because the samples become less and less
 +  correlated as the sample age exceeds the Allan intercept. Various
 +  schemes have been used over the years to cope with this fact. The latest
 +  one and the one that works the best is to use a modified sort metric
 +  where the delay is used when the age of the sample is less than the
 +  intercept and the sum of delay and dispersion above that. The net result
 +  is that, at small poll intervals the algorithm operates as a minimum
 +  filter, while at larger poll intervals it morphs to FIFO. Left
 +  unmodified, a sample could be used when twelve days old. This along with
 +  the FLL modifications has made a dramatic improvement at large poll
 +  intervals.
 +
 +- [Backward Incompatible] The 'state' variable is no longer reported or
 +  available via ntpq output.  The following system status bit names
 +  have been changed:
 +  - sync_alarm -> leap_alarm
 +  - sync_atomic -> sync_pps
 +  - sync_lf_clock -> sync_lf_radio
 +  - sync_hf_clock -> sync_hf_radio
 +  - sync_uhf_clock -> sync_uhf_radio
 +  - sync_local_proto -> sync_local
 +  - sync_udp/time -> sync_other
 +  Other names have been changed as well.  See the change history for
 +  libntp/statestr.c for more details.
 +  Other backward-incompatible changes in ntpq include:
 +  - assID -> associd
 +  - rootdispersion -> rootdisp
 +  - pkt_head -> pkt_neader
 +  See the change history for other details.
 +
 +* Updates and cleanup from Dave Mills.
 +* [Bug 995] Remove spurious ; from ntp-keygen.c.
 +* More cleanup and changes from Dave Mills.
 +* [Bug 980] Direct help to stdout.
+ ---
+ * [Bug 1158] support for aix6.1
+ * [Bug 1157] quiet OpenSSL warnings, clean up configure.ac
  
  ---
  (4.2.4p7-RC2) 2009/04/09 Released by Harlan Stenn <stenn@ntp.org>
diff --cc configure.ac
index 32cbb16472d15dbadfeddb98cf10f946c985851c,82a0ca87d8a23648b3d8ea2539fbbbc8b5170c14..1d3c0647f5d4e357069da3c014ed2180fffbe2b4
@@@ -24,15 -24,18 +24,19 @@@ dnl check these early to avoid autocon
  AC_AIX
  AC_MINIX
  
+ # So far, the only shared library we might use is libopts.
+ # It's a small library - we might as well use a static version of it.
+ AC_DISABLE_SHARED
  dnl  we need to check for cross compile tools for vxWorks here
  AC_PROG_CC
+ AC_PROG_CC_STDC
  dnl AC_PROG_CC_C89
- dnl AC_PROG_CC_STDC
- # We should make sure CC is *some* version of ANSI.
+ # make sure CC is *some* version of ANSI.
  # Ralf Wildenhues: With per-target flags we need CC_C_O
- AM_PROG_CC_C_O
+ AC_PROG_CC_C_O
  AC_PROG_CPP
 +AC_PROG_YACC
  
  # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
  case "$host" in
@@@ -169,89 -206,7 +209,6 @@@ case "$host" i
      ;;
  esac
  
- AC_CACHE_CHECK(if we want the windows symmetric client hack, ac_cv_wintime,
- [AC_ARG_ENABLE(wintime,
-    AC_HELP_STRING([--enable-wintime], [- Provide the windows symmetric client hack]),
-     [ans=$enableval],
-     [ans=no])
- ac_cv_wintime=$ans])
- # End of AC_CACHE_CHECK for wintime
- case "$ac_cv_wintime" in
-  yes)
-     AC_DEFINE(WINTIME, ,[Do we want the windows symmetric client hack?])
-     ;;
- esac
- AC_CACHE_CHECK([if we want support for Samba's signing daemon], ac_cv_ntp_signd,
- [AC_ARG_ENABLE(ntp-signd,
-    AC_HELP_STRING([--enable-ntp-signd], [- Provide support for Samba's signing daemon, =/var/run/ntp_signd]),
-     [ans=$enableval],
-     [ans=no])
- ac_cv_ntp_signd=$ans])
- # End of AC_CACHE_CHECK for ntp_signd
- case "$ac_cv_ntp_signd" in
-       no)
-               ;;
-       yes)
-               ntp_signd_path=/var/run/ntp_signd
-               ;;
-       *)
-               ntp_signd_path="$ac_cv_ntp_signd"
-               ;;
- esac
- case "$ac_cv_ntp_signd" in
-  yes)
-     AC_DEFINE(HAVE_NTP_SIGND, ,[Do we want support for Samba's signing daemon?])
-     AC_DEFINE_UNQUOTED(NTP_SIGND_PATH, "$ntp_signd_path", [Path to sign daemon rendezvous socket])
-     ;;
- esac
- AC_CACHE_CHECK(if we should use /dev/clockctl, ac_cv_clockctl,
- [AC_ARG_ENABLE(clockctl,
-    AC_HELP_STRING([--enable-clockctl], [s Use /dev/clockctl for non-root clock control]),
-     [ans=$enableval],
-     [case "$host" in
-       *-*-netbsd*)
-        ans=yes
-        ;;
-       *) ans=no
-        ;;
-      esac
-      ])
- ac_cv_clockctl=$ans])
- # End of AC_CACHE_CHECK for clockctl
- AC_CHECK_HEADERS(sys/clockctl.h)
- case "$ac_cv_clockctl$ac_cv_header_sys_clockctl_h" in
-  yesyes)
-     AC_DEFINE(HAVE_DROPROOT, ,[Can we drop root privileges?])
-     ;;
- esac
--
- AC_CACHE_CHECK(if we have linux capabilities (libcap), ac_cv_linuxcaps,
- [AC_ARG_ENABLE(linuxcaps,
-    AC_HELP_STRING([--enable-linuxcaps], [s Use Linux capabilities for non-root clock control]),
-     [ans=$enableval],
-     [ans=no])
- ac_cv_linuxcaps=$ans])
- # End of AC_CACHE_CHECK for linuxcaps
- AC_CHECK_HEADERS(sys/capability.h)
- AC_CHECK_HEADERS(sys/prctl.h)
- case "$ac_cv_linuxcaps$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
-  yesyesyes)
-     AC_DEFINE(HAVE_LINUX_CAPABILITIES, ,[Do we have Linux capabilities?])
-     AC_DEFINE(HAVE_DROPROOT, ,[Can we drop root privileges?])
-     LIBS="$LIBS -lcap"
-     ;;
- esac
- AC_CHECK_HEADERS(libscf.h)
- case "$ac_cv_header_libscf_h" in
-  yes)
-     AC_SUBST(LSCF, [-lscf])
-     ;;
- esac
- AC_CHECK_FUNC(setppriv,AC_DEFINE(HAVE_SOLARIS_PRIVS, ,[Are Solaris privileges available?]), )
  case "$build" in
   $host)
      ;;
@@@ -4108,21 -4173,20 +4138,21 @@@ AC_CACHE_CHECK
  # See whether IPv6 support is provided via a Kame add-on.
  # This is done before other IPv6 linking tests so LIBS is properly set.
  #
- AC_MSG_CHECKING(for Kame IPv6 support)
+ AC_MSG_CHECKING([for Kame IPv6 support])
  AC_ARG_WITH(kame,
-       AC_HELP_STRING([--with-kame], [- =/usr/local/v6]),
+       [AC_HELP_STRING([--with-kame], [- =/usr/local/v6])],
        use_kame="$withval", use_kame="no")
  
 +
  case "$use_kame" in
-       no)
-               ;;
-       yes)
-               kame_path=/usr/local/v6
-               ;;
-       *)
-               kame_path="$use_kame"
-               ;;
+  no)
+     ;;
+  yes)
+     kame_path=/usr/local/v6
+     ;;
+  *)
+     kame_path="$use_kame"
+     ;;
  esac
  
  case "$use_kame" in
Simple merge