[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ntp-bugs
Subject:    [ntp:bugs] [Bug 2483] New: ntp_enable configuration option missing
From:       bugzilla-daemon () ntp ! org
Date:       2013-09-27 15:32:30
Message-ID: bug-2483-35 () http ! bugs ! ntp ! org/
[Download RAW message or body]

http://bugs.ntp.org/show_bug.cgi?id=2483

             Bug #: 2483
           Summary: ntp_enable configuration option missing
           Product: ntp
           Version: 4.2.7
          Platform: PC
               URL: http://www.eecis.udel.edu/~mills/ntp/html/extern.html
        OS/Version: Linux
            Status: ASSIGNED
          Severity: critical
          Priority: P1
         Component: ntp.conf parser
        AssignedTo: config-parser@ntp.org
        ReportedBy: kostecke@ntp.org
                CC: bugs@ntp.org
    Classification: Unclassified


According to http://www.eecis.udel.edu/~mills/ntp/html/extern.html there should
be a way to enable/disable ntpd's control of time. However there is no apparent
means of doing so.

"The ntp_enable and kern_enable are set by the configuration module. Normally,
both switches default on, so the daemon can control the time and the kernel
discipline can be used, if available. The pps_update switch is set by the
protocol module when it believes the PPS provider source is legitimate and
operating within nominals. The ntp_control switch is set during configuration
by interrogating the kernel. If both the kern_enable and ntp_control switches
are set, the daemon disciplines the clock via the kernel and the internal
daemon discipline is disabled."

According to ./ntpd/ntp_loopfilter.c

"/*
 * Kernel PLL/PPS state machine. This is used with the kernel PLL
 * modifications described in the documentation.
 *
 * If kernel support for the ntp_adjtime() system call is available, the
 * ntp_control flag is set. THE NTP_ENABLE AND KERN_ENABLE FLAGS CAN BE
 * SET AT CONFIGURATION TIME OR RUN TIME USING NTPDC.
"
(emphasis added)

The place where ntp_enable is set is ./ntpd/ntp_loopfilter.c:

/*
 * Clock state machine control flags
 */
int     ntp_enable = TRUE;      /* clock discipline enabled */
int     pll_control;            /* kernel support available */
int     kern_enable = TRUE;     /* kernel support enabled */
int     pps_enable;             /* kernel PPS discipline enabled */
int     ext_enable;             /* external clock enabled */
int     pps_stratum;            /* pps stratum */
int     allow_panic = FALSE;    /* allow panic correction */
int     mode_ntpdate = FALSE;   /* exit on first clock set */
int     freq_cnt;               /* initial frequency clamp */
int     freq_set;               /* initial set frequency switch */

Could we have this added?

-- 
Configure bugmail: http://bugs.ntp.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bugs mailing list
bugs@lists.ntp.org
http://lists.ntp.org/listinfo/bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic