Giter VIP home page Giter VIP logo

ntp-project / ntp Goto Github PK

View Code? Open in Web Editor NEW
141.0 141.0 52.0 73.85 MB

The full and complete NTP Reference Implementation from the Network Time Protocol Project at Network Time Foundation.

Home Page: https://www.ntp.org/

Makefile 1.27% C 78.91% Shell 0.52% M4 2.38% Emacs Lisp 0.01% HTML 11.40% CSS 0.02% C++ 2.24% Objective-C 0.06% sed 0.02% Yacc 0.25% Batchfile 0.16% Perl 1.34% Perl 6 0.02% Awk 0.16% Assembly 0.02% Roff 0.43% Scheme 0.04% Python 0.48% Ruby 0.28%

ntp's People

Contributors

mandree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ntp's Issues

Build instructions unclear -- is this repo maintained?

The project may be assuming some old project building convention related to autotools that not everyone is familiar with especially people who are more familiar with other build tools, or maybe the documentation is just out-of-date.

Particularly, INSTALL refers to a file called 'configure' which does not exist. INSTALL also talks about running autoconf to generate configure from configure.in, but configure.in doesn't exist, either. There is configure.ac but there is no mention of it.

The biggest problem is that configure is missing. Normally, people run configure followed by make. Maybe there is some unspoken rules about how to generate configure from some other files that people familiar with autotools would know, but this is not generally clear to me. Since the last commit is 2016, maybe this repo is unmaintained?

So Funny ehehehe (LOL) Please read this.

I had that amazing moment today at NTP.ORG. I check the localization subdomain time server and tried "us.pool.ntp.org" and a video's page redirects to me. so funny :)

License mismatch

While looking at the licenses of the files, I noticed that the file is licensed GPLv3+.
(/sntp/libopts/m4/libopts.m4)
Therefore, when building with static linking, this license is transferred to the entire package, as far as I understand.
Looking through the library versions for the same file, I didn't find this license.
If you have the opportunity, could you add an exception.(https://spdx.org/licenses/Autoconf-Exception-macro.html)
or explicitly indicate this nuance.

SHM refclock age control of local time stamp correctness

https://github.com/ntp-project/ntp/blob/9c75327c3796ff59ac648478cd4da8b205bceb77/ntpd/refclock_shm.c#L606C8-L606C8

/* check 1: age control of local time stamp */
tt = shm_stat.tvc.tv_sec - shm_stat.tvr.tv_sec;
if (tt < 0 || tt > up->max_delay) {
	DPRINTF(1, ("%s:SHM stale/bad receive time, delay=%llds\n",
		    refnumtoa(&peer->srcadr), (long long)tt));
	up->bad++;
	msyslog (LOG_ERR, "SHM: stale/bad receive time, delay=%llds",
		 (long long)tt);
	return;
}

Here we substract received time stamp from current local time stamp (tt variable). If received time stamp is greater (which means that we should move system clock forward), we get negative value in tt. Further, we check if tt is negative ( tt < 0) and refuse to do such time adjustment. Is it correct behaviour? Error message for such case claims that received time stamp is stale, i.e. the received time is older than current time, which conflicts with actual actions in code. It is a common case that hardware without power support on local RTC clock will get in such scenario, that received time stamp from some external time source is newer than local time stamp. The reverse case seems to be unrealistic. And it is protected by tt > up->max_delay check, as far as i see.

Repository not synced with Bitkeeper

I would like to make a contribution to the ntp project, but noticed that the github repository hasn't been updated for three years.

I have not worked with Bitkeeper before as Bitkeeper has traditionally been a commercial software and git has been the tool of choice for years now for most developers.

Would it be possible to keep the git repository in sync with Bitkeeper or even switch to git on github completely?

The client and server's times differ by 136 years.

When I set the time on the NTP server to the year 2000 and the client's time to the correct year 2023, and then use NTPD as the client to synchronize with the server, the client's time is changed to the year 2136

If the NTP server's time is set to the year 2004, the NTP client's time changes to the year 2140, with a difference of 136 years. This issue persists even with the latest version of NTP, version 4.2.8, but is not present when using version 4.2.6p5.

Using sntp as a server

Hello, after digging through documentation and online posts, I have not found how to use the sntp application as an sntp server... The docs claims that it is possible but at no point explain how to set it up.
I have read the warnings that come with using an sntp server, and in my use case it is acceptable.

How would one go about setting this up? Which part of the code would I need to hack to introduce reading my reference clock?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.