summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.c
AgeCommit message (Expand)Author
4 daysUse imsgbuf_clear() where appropriate instead of msgbuf_clear().Claudio Jeker
4 daysRename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush toClaudio Jeker
4 daysConvert imsg_write() callers to the new simplified return logic.Claudio Jeker
4 daysIntroduce imsg_write() and use it instead of msgbuf_write().Claudio Jeker
4 daysUse imsg_flush() instead of implementing the same by hand.Claudio Jeker
2024-05-21remove prototypes with no matching function and externs with no varJonathan Gray
2021-07-16main proc doesn't speak with sockets during the main loop and setpriority plusRicardo Mestre
2021-07-16/etc/ssl/cert.pem is loaded into mem with tls_load_file(3) on local functionRicardo Mestre
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
2020-02-12If constraints are configured but do not work for whatever reason ntpdOtto Moerbeek
2019-11-11Also implement "trusted" for sensors; do not do constraint validationOtto Moerbeek
2019-11-11Disable -s and -S functionality. -s would force time using NTP packets withoutTheo de Raadt
2019-11-10Introduce a "trusted" modifier, for peers that should be on a local netOtto Moerbeek
2019-11-10- validate sensor values against constraintsOtto Moerbeek
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-06-27Allow logging to both stderr and syslog; don't reset the log level ifOtto Moerbeek
2019-06-12Fix init of syslog for childs and teach dns process about synced state.Otto Moerbeek
2019-06-09Introducing autmatic settime mode: if some preconditions are metOtto Moerbeek
2019-01-14Prevent multiple ntpds from tripping over each other.Florian Obser
2018-11-29update for libtls default cert changes.Ted Unangst
2018-11-06Use TLS_CA_CERT_FILE instead of a separate define.Joel Sing
2018-08-31the main process must chdir to /, since it cannot have daemon() do theTheo de Raadt
2018-08-08ntpd unveils the cert.pem "r" file (which is passed-over-socket to theTheo de Raadt
2018-08-04Revert back previous commit, we have decided that socket files don't cause anyRicardo Mestre
2018-08-02ntpd(8) has logic in place to delete its control socket on shutdown, but itRicardo Mestre
2017-01-09Stop accessing verbose and debug variables from log.c directly.Reyk Floeter
2016-12-01Remove unused variable which was leaking memory, and while here remove 2 otherRicardo Mestre
2016-09-26Teach ntpd(8) constraint process to use exec*() instead of just forking,Rafael Zalamena
2016-09-26Teach ntpd(8) how to use socket status to shutdown the daemon. While atRafael Zalamena
2016-09-14Teach ntpd(8) how to fork+exec.Rafael Zalamena
2016-09-03Remove the oh so funny "LOSS OF MIND" from the diclaimer that was notReyk Floeter
2016-05-02prepare userland for removing chroot(2) from allowed syscalls under pledge(2).Sebastien Marie
2016-02-02Remove setproctitle() for the parent process. Because rc.d(8) uses processStuart Henderson
2016-01-27Don't attempt to kill() the constraint in the wrong process. TheReyk Floeter
2016-01-27update ntpd log initialization to work like relayd, fix debug log levelsBrent Cook
2016-01-11sneaky whitespace snuck in againTheo de Raadt
2015-12-29Don't assume fprintf() will set the FILE * error condition.Todd C. Miller
2015-12-19Switch and sync to the log.c variant from httpd/relayd/iked/snmpd/vmd.Reyk Floeter
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-11-24Cache values from getpwnam() done at initialization, which need to beTheo de Raadt
2015-10-23Rather than re-opening the driftfile to write, keep it open; rewindingTheo de Raadt
2015-10-12Move execution of the constraints from the ntp to the parent process.Reyk Floeter
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03In the ntpctl(1) case, after it has connect()'d to ntpd we can tame "stdio"Theo de Raadt
2015-07-18replace bzero with memsetBrent Cook
2015-03-11-s is not optional, sadly;Jason McIntyre
2015-02-11Remove dead code (IMSG_HOST_DNS has been moved from the parent toReyk Floeter
2015-02-10spacingReyk Floeter
2015-02-10Don't show the subseconds when displaying the constraint offset.Reyk Floeter
2015-02-10Add support for "constraints": when configured, ntpd(8) will query theReyk Floeter