aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ntp
Commit message (Collapse)AuthorAgeFilesLines
* ntp: Fix buildworld with MK_OPENSSL=noCy Schubert2025-12-192-2/+3
| | | | | | Reported by: wosch Tested by: wosch MFC after: 1 week
* leap-seconds: Update to leap-seconds.3960835200 from IERSYasuhiro Kimura2025-09-081-4/+4
| | | | | | | | Current leap-seconds file has already expired on 28 June 2025 PR: 289352 Obtained from: https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.3960835200 MFC after: 3 days
* ntp: Switch to upstream man pagesCy Schubert2024-11-128-7764/+38
| | | | | | | | The downstream (FreeBSD) ntp man pages are out of date. Switch to those provided by ntp.org (nwtime.org). PR: 104493 Differential Revision: https://reviews.freebsd.org/D47319
* Update Makefile.depend filesSimon J. Gerraty2024-10-143-0/+3
| | | | | | | After building packages we have a number of new and updated Makefile.depend files Reviewed by: stevek
* ntp: Improve descriptions in man pagesAlexander Ziaee2024-09-256-6/+6
| | | | | | | | | | | | + ntpd added to ntp.conf(5) description (search keywords) + expand NTP so these pages are shown when `apropos time` + "standard" => "reference" for increased consistency - removed redundant or duplicated search keywords ntp.org bug: https://bugs.ntp.org/show_bug.cgi?id=3936 MFC after: 3 days Reviewed by: Harlan Stenn <stenn@nwtime.org> Reviewed by: Cy Schubert <cy@nwtime.org>
* leap-seconds: Update to leap-seconds 3960057600 obtained from IERSCy Schubert2024-07-211-254/+119
| | | | | | | | | | | | | | | | | IERS is the canonical source of leap-seconds. IANA, NIST and USNO obtain their leap-second updates from IERS. This resolves an issue for IPv6-only hosts as IERS is not accessible via IPv6, requiring IPv6-only host to rely on some other source, above. From this point forward we should fetch the file from IERS, the organization responsible for deciding when to insert leap-seconds. PR: 279413 Obtained from: https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list Discussed with: imp MFC after: 1 day
* Remove residual blank line at start of MakefileWarner Losh2024-07-1520-20/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Update leap-seconds to leap-seconds.3676924800Xin LI2024-06-191-4/+4
| | | | | Obtained from: ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.3676924800 MFC after: 3 days
* ntp: Update version stringsCy Schubert2024-05-272-3/+3
| | | | | | Reported by: "Herbert J. Skuhra" <herbert@gojira.at> MFC after: 3 days Fixes: f5f40dd63bc7
* ntp: Vendor import of ntp-4.2.8p18Cy Schubert2024-05-277-243/+324
| | | | | | MFC: 3 days Merge commit '1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad' into main
* packages: add package for NTPLexi Winter2024-05-0419-0/+19
| | | | | Reviewed by: imp, manu Pull Request: https://github.com/freebsd/freebsd-src/pull/1193
* Update leap-seconds to leap-seconds.3676924800Xin LI2023-11-261-4/+4
| | | | | Obtained from: ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.3676924800 MFC after: 3 days
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-1610-20/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-1650-50/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-162-2/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* ntp: import ntp-4.2.8p17Cy Schubert2023-06-061-3/+3
| | | | | | | | Fixes two small bugs including one regression. MFC after: 3 days Merge commit 'ab1f1aa8333369a83ff284848fc3fc2e52d5f29f'
* ntp: Update version stringCy Schubert2023-06-012-4/+4
| | | | | | | | Chase a466cc55373f, updating the version string in the local config.h. Reported by: Trond Endrestol <Trond.Endrestol@ximalas.info> Fixes: a466cc55373f MFC after: immediately
* ntp: import ntp-4.2.8p16Cy Schubert2023-06-019-34/+38
| | | | | Security: NtpBUg3767, NtpBug3808, NtpBug3807 (CVE-2023-26555) MFC after: immediately
* ntpd: Support IPv6-only hostsMina Galic2023-05-051-7/+10
| | | | | | | | | | | | | | 0.pool.* returns only IPv4 addresses. 2.pool.* returns both, IPv6 and IPv4 addresses. conservatively extend our IPv4 only pool configuration by adding a second pool, which also returns IPv6 addresses. PR: 270536 Reported by: Lapo Luchini <lapo@lapo.it> MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/731 Differential Revision: https://reviews.freebsd.org/D39954
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-196-3/+5
|
* Update leap-seconds to latest leap-seconds.3676924800 (expires 2023-12-28)Dimitry Andric2023-02-241-4/+4
| | | | | Obtained from: ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.3676924800 MFC after: 3 days
* ntp: retire now-unused MIPS casesEd Maste2022-10-191-4/+0
|
* Update leap-seconds to leap-seconds.3676924800Xin LI2022-03-141-4/+4
| | | | | Obtained from: ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.3676924800 MFC after: 3 days
* ntp: disable format string warnings in liboptsEd Maste2022-02-271-0/+3
| | | | | | | libopts uses generated format string tables that contain embedded NULs. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34386
* ntp: Revert "Disable stack gap for ntpd during build."Cy Schubert2021-10-151-3/+0
| | | | | | | This reverts commit af949c590bd8a00a5973b5875d7e0fa6832ea64a because 889b56c8cd84c9a9f2d9e3b019c154d6f14d9021 fixes the underlying problem. MFC after: 1 month
* ntp.conf.5: Fix typosElyes HAOUAS2021-10-061-8/+8
| | | | | | | | | | | | | "certian" --> "certain" "compatability" --> "compatibility" "noticable" --> "noticeable" "limite" --> "limit" "acutal" --> "actual" "ba" --> "be" MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/550 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
* Update leap-seconds to leap-seconds.3676924800.Xin LI2021-09-201-4/+4
| | | | | Obtained from: ftp://ftp.nist.gov/pub/time/leap-seconds.3676924800. MFC after: 3 days
* Disable stack gap for ntpd during build.Marcin Wojtas2021-05-211-0/+3
| | | | | | | | | | | | | When starting, ntpd calls setrlimit(2) to limit maximum size of its stack. The stack limit chosen by ntpd is 200K, so when stack gap is enabled, the stack gap is larger than this limit, which results in ntpd crashing. Submitted by: Dawid Gorecki <dgr@semihalf.com> Reviewed by: cy, imp Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D29553
* Update leap-seconds to leap-seconds.3676924800.Xin LI2020-12-301-4/+4
| | | | | Obtained from: ftp://ftp.nist.gov/pub/time/leap-seconds.3676924800 MFC after: 3 days
* [PowerPC] Fix multiple ntp configuration issuesBrandon Bergren2020-09-231-3/+5
| | | | | | | | | | | | | | | | | | | | | | * powerpc time_t is 64 bit, not 32 bit. * Add definition for powerpc64le. With this, powerpc64le ntpd and ntpdate operate correctly instead of corrupting the clock and exiting. Tested on powerpc64, powerpc64le, and powerpc. No feedback from cy@. I am a bit confused as to how SIZEOF_TIME_T being wrong ever worked on powerpc, it being big endian and all. Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D26379 Notes: svn path=/head/; revision=366058
* ntp: whitespace and typo fix in conf fileEd Maste2020-09-071-2/+2
| | | | | | | | | PR: 248942 Submitted by: Jose Luis Duran (whitespace), igor (typo) MFC after: 1 week Notes: svn path=/head/; revision=365422
* MFV r362565:Cy Schubert2020-06-242-4/+4
| | | | | | | | | | | | | | | | Update 4.2.8p14 --> 4.2.8p15 Summary: Systems that use a CMAC algorithm in ntp.keys will not release a bit of memory on each packet that uses a CMAC keyid, eventually causing ntpd to run out of memory and fail. The CMAC cleanup from https://bugs.ntp.org/3447, part of ntp-4.2.8p11, introduced a bug whereby the CMAC data structure was no longer completely removed. MFC after: 3 days Security: NTP Bug 3661 Notes: svn path=/head/; revision=362568
* Update leap-seconds to leap-seconds.3676924800.Xin LI2020-05-191-4/+4
| | | | | | | | Obtained from: ftp://ftp.nist.gov/pub/time/leap-seconds.3676924800 MFC after: 3 days Notes: svn path=/head/; revision=361260
* PACKAGE_STRING should be the same as PACKAGE_VERSION.Cy Schubert2020-03-181-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=359097
* MFV r358616:Cy Schubert2020-03-042-3/+6
| | | | | | | | | | | | | | | | | | Update ntp-4.2.8p13 --> 4.2.8p14. The advisory can be found at: http://support.ntp.org/bin/view/Main/SecurityNotice#\ March_2020_ntp_4_2_8p14_NTP_Rele No CVEs have been documented yet. MFC after: now Security: http://support.ntp.org/bin/view/Main/NtpBug3610 http://support.ntp.org/bin/view/Main/NtpBug3596 http://support.ntp.org/bin/view/Main/NtpBug3592 Notes: svn path=/head/; revision=358652
* Use __riscv instead of __riscv__Warner Losh2020-02-101-1/+1
| | | | | | | | | I misread arch(7) when I added this... Noticed by: jhb@ and mhorne@ Notes: svn path=/head/; revision=357743
* Remove ifdefs for ia64 and sparc64.Warner Losh2020-02-101-4/+0
| | | | | | | | Reivewed by: cy@, bcr@ Differential Revision: https://reviews.freebsd.org/D23593 Notes: svn path=/head/; revision=357741
* Refresh architecture list with latest:Warner Losh2020-02-101-12/+4
| | | | | | | | | | | | | Remove: sparc, sparc64 (twice), ia64, alpha Add: riscv64 Remove now-useless sparc64 ifdef Reivewed by: cy@, bcr@ Differential Revision: https://reviews.freebsd.org/D23593 Notes: svn path=/head/; revision=357740
* [ntp] Don't compile in the ssl routines into libevent if MK_OPENSSL is noAdrian Chadd2020-01-241-1/+7
| | | | | | | | | | | Most of ntpd still handles MK_OPENSSL ok, but the libevent import brought in the SSL bufferevent routines without checking MK_OPENSSL. This doesn't completely fix WITHOUT_CRYPTO=YES building, but hey, it's one less broken thing. Notes: svn path=/head/; revision=357068
* ntpd(8): Don't use OpenSSL's RAND APIConrad Meyer2019-12-131-1/+1
| | | | | | | | | | The !USE_OPENSSL_CRYPTO_RAND path uses arc4random_buf() correctly. In general, we should prefer to avoid things OpenSSL does poorly when a good alternative exists in libc. Notes: svn path=/head/; revision=355700
* usr.sbin/ntp: don't emit versions w/ make -sKyle Evans2019-12-122-1/+5
| | | | | | | | | | | | | | | | | <sys.mk> defines ECHO=echo when not using make -s, and ECHO=true when using make -s. export ECHO for ntp products and use it in the mkver script to echo the version. This suppresses the output as appropriate. ECHO is given a default value to make sure things still work as expected for anyone that isn't redefining ECHO. Reviewed by: cy MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D22101 Notes: svn path=/head/; revision=355639
* Update Makefile.depend filesSimon J. Gerraty2019-12-118-14/+1
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* Add Makefile.depend.optionsSimon J. Gerraty2019-12-116-0/+36
| | | | | | | | | | | | | | | | | | | | Leaf directories that have dependencies impacted by options need a Makefile.depend.options file to avoid churn in Makefile.depend DIRDEPS for cases such as OPENSSL, TCP_WRAPPERS etc can be set in local.dirdeps-options.mk which can add to those set in Makefile.depend.options See share/mk/dirdeps-options.mk Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22469 Notes: svn path=/head/; revision=355616
* Chase r352304. The default rlimit memlock is no memory locking.Cy Schubert2019-12-041-1/+1
| | | | | | | | Reported by: egypcio@ MFC after: 3 days Notes: svn path=/head/; revision=355388
* Update leap-seconds to leap-seconds.3676924800.Xin LI2019-11-271-5/+5
| | | | | | | | Obtained from: ftp://ftp.nist.gov/pub/time/leap-seconds.3676924800 MFC after: 3 days Notes: svn path=/head/; revision=355128
* Chase r344883. ntp is 4.2.8p13.Cy Schubert2019-11-211-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=354978
* Reduce calls to close(2) at startup through the use of closefrom(2).Cy Schubert2019-09-191-1/+1
| | | | | | | | | | Submitted by: pawel.biernacki@gmail.com Reviewed by: mjg, cy MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D21715 Notes: svn path=/head/; revision=352518
* No longer mlock() ntpd pages by default in memory thus allowing itsCy Schubert2019-09-132-1/+9
| | | | | | | | | | | | | | | | pages to page as necessary. To restore historic BSD behaviour add the following to ntp.conf: rlimit memlock 32 Discussed on: freebsd-current@ between Sept 6-9, 2019 Reported by: Users using ASLR with stack gap != 0 Reviewed by: ian, kib, rgrimes (all previous versions) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D21581 Notes: svn path=/head/; revision=352304
* Get the readline header from the installed header instead of the from the sourceBaptiste Daroussin2019-09-121-1/+1
| | | | | | | | | | | location. With newer import of libedit, the path to be able to access readline/readline.h will also include header which name will conflict with some expected by ntp in another path and end up breaking the build. Notes: svn path=/head/; revision=352248