]> git.ipfire.org Git - thirdparty/nqptp.git/log
thirdparty/nqptp.git
3 years agoUse libdir during systemd service install 10/head
fwcd [Wed, 3 Nov 2021 20:05:13 +0000 (21:05 +0100)] 
Use libdir during systemd service install

4 years agoAdd a flag to selectively enable includion of the startup script.
Mike Brady [Wed, 28 Jul 2021 15:02:37 +0000 (16:02 +0100)] 
Add a flag to selectively enable includion of the startup script.

4 years agoUpdate RELEASE_NOTES.md
Mike Brady [Thu, 22 Jul 2021 09:44:33 +0000 (10:44 +0100)] 
Update RELEASE_NOTES.md

4 years agoUpdates from the main branch.
Mike Brady [Thu, 22 Jul 2021 09:27:47 +0000 (10:27 +0100)] 
Updates from the main branch.

4 years agoUpdate RELEASE_NOTES.md
Mike Brady [Thu, 22 Jul 2021 09:25:47 +0000 (10:25 +0100)] 
Update RELEASE_NOTES.md

4 years agoMerge pull request #7 from hifiberry/main
Mike Brady [Thu, 22 Jul 2021 07:47:51 +0000 (08:47 +0100)] 
Merge pull request #7 from hifiberry/main

Use DESTDIR

4 years agoUse DESTDIR 7/head
HiFiBerry [Thu, 22 Jul 2021 06:30:53 +0000 (08:30 +0200)] 
Use DESTDIR

4 years agoCandidate full implementation of BCM algorithm. Clang format.
Mike Brady [Mon, 19 Jul 2021 09:16:03 +0000 (10:16 +0100)] 
Candidate full implementation of BCM algorithm. Clang format.

4 years agoUpdate RELEASE_NOTES.md
Mike Brady [Fri, 16 Jul 2021 10:21:24 +0000 (11:21 +0100)] 
Update RELEASE_NOTES.md

4 years agoCreate RELEASE_NOTES.md
Mike Brady [Fri, 9 Jul 2021 07:56:03 +0000 (08:56 +0100)] 
Create RELEASE_NOTES.md

4 years agoCheck return from getifaddrs and check that the address pointers are valid.
Mike Brady [Thu, 8 Jul 2021 22:22:47 +0000 (22:22 +0000)] 
Check return from getifaddrs and check that the address pointers are valid.

4 years agoCheck the ifa_addr before dereferencing it.
Mike Brady [Thu, 8 Jul 2021 21:29:38 +0000 (21:29 +0000)] 
Check the ifa_addr before dereferencing it.

4 years agoRemove misleading debug message.
Mike Brady [Thu, 8 Jul 2021 20:48:11 +0000 (20:48 +0000)] 
Remove misleading debug message.

4 years agoCheck return status from getifaddrs.
Mike Brady [Thu, 8 Jul 2021 20:37:40 +0000 (20:37 +0000)] 
Check return status from getifaddrs.

4 years agoUpdate README.md
Mike Brady [Thu, 8 Jul 2021 13:42:39 +0000 (14:42 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Thu, 8 Jul 2021 13:38:51 +0000 (14:38 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Thu, 8 Jul 2021 13:35:01 +0000 (14:35 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Thu, 8 Jul 2021 13:30:06 +0000 (14:30 +0100)] 
Update README.md

Use the https:// address in the guide.

4 years agoUpdate README.md
Mike Brady [Thu, 8 Jul 2021 11:06:17 +0000 (12:06 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Thu, 8 Jul 2021 11:05:19 +0000 (12:05 +0100)] 
Update README.md

4 years agoMake sure up-to-date information is used in a follow-up when moving from becoming...
Mike Brady [Thu, 8 Jul 2021 09:35:04 +0000 (09:35 +0000)] 
Make sure up-to-date information is used in a follow-up when moving from becoming-master to master, duh.

4 years agoclock becoming master was using obselete information, and quieten a warning.
Mike Brady [Wed, 7 Jul 2021 21:36:45 +0000 (21:36 +0000)] 
clock becoming master was using obselete information, and quieten a warning.

4 years agoMerge branch 'development' into main
Mike Brady [Wed, 7 Jul 2021 17:26:26 +0000 (17:26 +0000)] 
Merge branch 'development' into main

Updates.

4 years agoUpdate Makefile.am
Mike Brady [Tue, 6 Jul 2021 19:05:24 +0000 (20:05 +0100)] 
Update Makefile.am

USE_GIT_VERSION instead of USE_GIT

4 years agoCheck for the present of .git/index before committing to using git versioning.
Mike Brady [Tue, 6 Jul 2021 18:57:15 +0000 (19:57 +0100)] 
Check for the present of .git/index before committing to using git versioning.

4 years agoUpdate README.md
Mike Brady [Tue, 6 Jul 2021 16:00:36 +0000 (17:00 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Tue, 6 Jul 2021 15:57:34 +0000 (16:57 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Tue, 6 Jul 2021 15:52:44 +0000 (16:52 +0100)] 
Update README.md

4 years agofix a compilation error visible in Alpine Linux
Mike Brady [Fri, 25 Jun 2021 15:22:01 +0000 (16:22 +0100)] 
fix a compilation error visible in Alpine Linux

4 years agofix a compilation error visible in Alpine Linux
Mike Brady [Fri, 25 Jun 2021 15:13:31 +0000 (16:13 +0100)] 
fix a compilation error visible in Alpine Linux

4 years agoForgot online documentation update.
Mike Brady [Thu, 24 Jun 2021 09:23:40 +0000 (10:23 +0100)] 
Forgot online documentation update.

Merge branch 'development' of github.com:mikebrady/nqptp into development

4 years agoAdd a new state clock_is_becoming_master and don't promote to master until at least...
Mike Brady [Thu, 24 Jun 2021 09:23:20 +0000 (10:23 +0100)] 
Add a new state clock_is_becoming_master and don't promote to master until at least one samples has been received after the mode clock_is_becoming_master is entered.

4 years agoUpdate README.md
Mike Brady [Wed, 23 Jun 2021 18:58:20 +0000 (19:58 +0100)] 
Update README.md

4 years agoHandle a situation where a clock is made master without having any valid (recent...
Mike Brady [Wed, 23 Jun 2021 16:12:59 +0000 (17:12 +0100)] 
Handle a situation where a clock is made master without having any valid (recent) samples.

4 years agoAdd support for FreeBSD. No installer yet.
Mike Brady [Tue, 22 Jun 2021 09:51:37 +0000 (10:51 +0100)] 
Add support for FreeBSD. No installer yet.

4 years agoUpdate README.md
Mike Brady [Mon, 21 Jun 2021 19:46:26 +0000 (20:46 +0100)] 
Update README.md

4 years agoDrop epoll in favour of select. Stop using Linux-specific ethernet timing constructs...
Mike Brady [Mon, 21 Jun 2021 19:20:24 +0000 (20:20 +0100)] 
Drop epoll in favour of select. Stop using Linux-specific ethernet timing constructs. Remove redundant and commented-out code.

4 years agoRemove many redundant #includes and do a clang format
Mike Brady [Sat, 19 Jun 2021 17:30:23 +0000 (18:30 +0100)] 
Remove many redundant #includes and do a clang format

4 years agoReinstate sample lookback when a clock has just become a bus master. Check previous...
Mike Brady [Thu, 17 Jun 2021 17:58:07 +0000 (18:58 +0100)] 
Reinstate sample lookback when a clock has just become a bus master. Check previous samples to possibly get a better fix on the clock offset.

4 years agoForgot!
Mike Brady [Sun, 6 Jun 2021 14:54:30 +0000 (15:54 +0100)] 
Forgot!
Merge branch 'development' of github.com:mikebrady/nqptp into development

4 years agoRemove all that lookback stuff.
Mike Brady [Sat, 5 Jun 2021 17:16:18 +0000 (18:16 +0100)] 
Remove all that lookback stuff.

4 years agoAdd a lookback to see if the master's first offset can be improved with prior estimat...
Mike Brady [Sat, 5 Jun 2021 16:53:52 +0000 (17:53 +0100)] 
Add a lookback to see if the master's first offset can be improved with prior estimates. Doesn't seem to make any difference. Make mastership base time the time of the first follow up after attaining mastership. Seems to be important.

4 years agoUpdate README.md
Mike Brady [Sat, 5 Jun 2021 06:58:22 +0000 (07:58 +0100)] 
Update README.md

4 years agoClock ID now stored following an announce rather than a follow_up. Require a clock...
Mike Brady [Sat, 5 Jun 2021 06:54:29 +0000 (07:54 +0100)] 
Clock ID now stored following an announce rather than a follow_up. Require a clock to be valid before begin considered for mastership. Identification of a new master speeded up by one sample interval -- 125 ms.

4 years agoAdd time of accession to bus mastership to the shm. Useful for deciding how long...
Mike Brady [Thu, 27 May 2021 07:33:58 +0000 (08:33 +0100)] 
Add time of accession to bus mastership to the shm. Useful for deciding how long to let the clock settle before using it.

4 years agofix the install-exec-hook stuff
Mike Brady [Fri, 14 May 2021 21:12:47 +0000 (22:12 +0100)] 
fix the install-exec-hook stuff

4 years agoUse .git/index's modification date as a dependency to generate gitversion
Mike Brady [Fri, 14 May 2021 16:25:31 +0000 (17:25 +0100)] 
Use .git/index's modification date as a dependency to generate gitversion

4 years agocosmetic
Mike Brady [Fri, 14 May 2021 16:13:54 +0000 (17:13 +0100)] 
cosmetic

4 years agoIf git exists and produces a version with 'git describe --dirty' use it. Otherwise...
Mike Brady [Fri, 14 May 2021 15:47:24 +0000 (16:47 +0100)] 
If git exists and produces a version with 'git describe --dirty' use it. Otherwise use the version from configure.ac

4 years agoClang
Mike Brady [Fri, 14 May 2021 10:34:10 +0000 (11:34 +0100)] 
Clang

4 years agoBegin to use git versioning 1.1-dev
Mike Brady [Fri, 14 May 2021 10:23:57 +0000 (11:23 +0100)] 
Begin to use git versioning

4 years agoBump for changes to conditioning
Mike Brady [Thu, 13 May 2021 20:16:12 +0000 (21:16 +0100)] 
Bump for changes to conditioning

4 years agoQuieten a message
Mike Brady [Thu, 13 May 2021 20:13:02 +0000 (21:13 +0100)] 
Quieten a message

4 years agoOnly condition a timer if it's a master. Reset it when it becomes a master.
Mike Brady [Thu, 13 May 2021 19:14:07 +0000 (20:14 +0100)] 
Only condition a timer if it's a master. Reset it when it becomes a master.

4 years agoAllow a new master to do a full resync when it becomes master. It seems that they...
Mike Brady [Wed, 12 May 2021 11:51:48 +0000 (12:51 +0100)] 
Allow a new master to do a full resync when it becomes master. It seems that they can get lazy when not masters.

4 years agoAdd a time limit for checking previous offset
Mike Brady [Tue, 11 May 2021 17:47:58 +0000 (18:47 +0100)] 
Add a time limit for checking previous offset

4 years agoAdd a warning in the log if sync is lost.
Mike Brady [Mon, 10 May 2021 15:06:11 +0000 (16:06 +0100)] 
Add a warning in the log if sync is lost.

4 years agoCheck that the clock receives a positive adjustment every 10 seconds. If not, it...
Mike Brady [Mon, 10 May 2021 15:04:47 +0000 (16:04 +0100)] 
Check that the clock receives a positive adjustment every 10 seconds. If not, it probably has lost sync and will be resynced.

4 years agoquieten a few debug messages
Mike Brady [Sat, 8 May 2021 18:51:46 +0000 (19:51 +0100)] 
quieten a few debug messages

4 years agoTo mark the great simplification.
Mike Brady [Sat, 8 May 2021 18:51:30 +0000 (19:51 +0100)] 
To mark the great simplification.

4 years agoRemove all the stuff that is no longer needed. We are just monitoring Announce and...
Mike Brady [Sat, 8 May 2021 18:29:33 +0000 (19:29 +0100)] 
Remove all the stuff that is no longer needed. We are just monitoring Announce and Follow_Up messages, not making any Delay_Req requests.

4 years agoMerge pull request #1 from charlesomer/development
Mike Brady [Thu, 6 May 2021 19:06:00 +0000 (20:06 +0100)] 
Merge pull request #1 from charlesomer/development

Remove group.

4 years agoChange dev branch. 1/head
Charles [Thu, 6 May 2021 00:40:41 +0000 (01:40 +0100)] 
Change dev branch.

4 years agoUse _any_ follow_up message and accept only those that give a greater clock time...
Mike Brady [Tue, 4 May 2021 08:39:22 +0000 (09:39 +0100)] 
Use _any_ follow_up message and accept only those that give a greater clock time or one that has slowed by up to 1000 ppm or so

4 years agoClang Format
Mike Brady [Mon, 3 May 2021 14:54:29 +0000 (15:54 +0100)] 
Clang Format

4 years agoAllow the clock's time to get suddenly older by any margin, but not to get suddenly...
Mike Brady [Mon, 3 May 2021 14:23:40 +0000 (15:23 +0100)] 
Allow the clock's time to get suddenly older by any margin, but not to get suddenly younger by more than 1000 ppm. This is because the clock time could suddenly increment by the sync interval when a sync is sent. The closer the local time is to when that sync increment occurs, the greater the time difference between local time and clock time. Thus by maximising that time difference, the delay is minimised between when the sync is sent and the true local time at that instant. However, the Delay_Resp message (or the Follow_Up message) must be matched with the Sync message using sequence numbers.

4 years agoMerge branch 'main' of github.com:mikebrady/nqptp into main
Mike Brady [Sun, 2 May 2021 17:25:55 +0000 (18:25 +0100)] 
Merge branch 'main' of github.com:mikebrady/nqptp into main

Forgot doc updates!

4 years agoclang format
Mike Brady [Sun, 2 May 2021 17:25:42 +0000 (18:25 +0100)] 
clang format

4 years agoUpdate README.md
Mike Brady [Sun, 2 May 2021 17:19:08 +0000 (18:19 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Sun, 2 May 2021 17:15:54 +0000 (18:15 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Sun, 2 May 2021 17:15:00 +0000 (18:15 +0100)] 
Update README.md

4 years agoInclude the IP or the master in the shm -- the user might wish to check that it's...
Mike Brady [Sun, 2 May 2021 13:40:39 +0000 (14:40 +0100)] 
Include the IP or the master in the shm -- the user might wish to check that it's in the timing peer list.

4 years agocheck for mastership whenever a clock entry is garbage collected
Mike Brady [Sat, 1 May 2021 13:27:02 +0000 (14:27 +0100)] 
check for mastership whenever a clock entry is garbage collected

4 years agoBe a bit more careful about updating the mastership when an existing clock becomes...
Mike Brady [Sat, 1 May 2021 09:58:29 +0000 (10:58 +0100)] 
Be a bit more careful about updating the mastership when an existing clock becomes active. It was ocassionally missing when a clock became master.

4 years agoadd Shared Memory Interface version to the -V output.
Mike Brady [Sun, 25 Apr 2021 18:02:21 +0000 (19:02 +0100)] 
add Shared Memory Interface version to the -V output.

4 years agoClang Format
Mike Brady [Sun, 25 Apr 2021 17:39:37 +0000 (18:39 +0100)] 
Clang Format

4 years agoAdd command line arguments -h -v -vv -vvv and -V. Bump version number.
Mike Brady [Sun, 25 Apr 2021 17:37:35 +0000 (18:37 +0100)] 
Add command line arguments -h -v -vv -vvv and -V. Bump version number.

4 years agoGenerate a reasonably understandable status message whenever mastership is recalculated.
Mike Brady [Sat, 24 Apr 2021 08:23:52 +0000 (09:23 +0100)] 
Generate a reasonably understandable status message whenever mastership is recalculated.

4 years agoclang format
Mike Brady [Mon, 19 Apr 2021 20:10:31 +0000 (21:10 +0100)] 
clang format

4 years agoAdd mickey mouse averaging. Seems to work very well.
Mike Brady [Mon, 19 Apr 2021 20:10:09 +0000 (21:10 +0100)] 
Add mickey mouse averaging. Seems to work very well.

4 years agoClang
Mike Brady [Mon, 19 Apr 2021 07:43:53 +0000 (08:43 +0100)] 
Clang

4 years agoUse the Delay Response to check if a Sync has been delayed and remove samples where...
Mike Brady [Mon, 19 Apr 2021 07:43:08 +0000 (08:43 +0100)] 
Use the Delay Response to check if a Sync has been delayed and remove samples where the Delay Resp response is not within 20 ms of the Sync. Stop clamping and guessing where the Sync should have been. Temporarily (?) turn on averaging over the last minute. More meomory and more CPU. Maybe mickey-mouse averaging would actually be better.

4 years agouninitialised variable wanring
Mike Brady [Sun, 18 Apr 2021 11:12:55 +0000 (12:12 +0100)] 
uninitialised variable wanring

4 years agoclang and clean up some debug messages
Mike Brady [Sun, 18 Apr 2021 11:06:38 +0000 (12:06 +0100)] 
clang and clean up some debug messages

4 years agoremove all the public clock information except for the master clock. amalgamate each...
Mike Brady [Sun, 18 Apr 2021 10:43:14 +0000 (11:43 +0100)] 
remove all the public clock information except for the master clock. amalgamate each clock's public and private information

4 years agoremove some no-longer-needed features on th kiss principle
Mike Brady [Sun, 18 Apr 2021 09:31:30 +0000 (10:31 +0100)] 
remove some no-longer-needed features on th kiss principle

4 years agomove the debug level definition
Mike Brady [Sat, 17 Apr 2021 15:46:47 +0000 (16:46 +0100)] 
move the debug level definition

4 years agoforce all timing peer list changes to be resets and not updates. never incorporate...
Mike Brady [Fri, 16 Apr 2021 09:23:04 +0000 (10:23 +0100)] 
force all timing peer list changes to be resets and not updates. never incorporate any adjustments to get to a putative master clock. needs a cleanup.

4 years agochange a few debug messages. update to latest shm interface.
Mike Brady [Wed, 14 Apr 2021 09:37:09 +0000 (10:37 +0100)] 
change a few debug messages. update to latest shm interface.

4 years agonot using new/update stuff any more -- this migrated into SPS.
Mike Brady [Tue, 13 Apr 2021 14:22:33 +0000 (15:22 +0100)] 
not using new/update stuff any more -- this migrated into SPS.

4 years agoquieten a few debug messages
Mike Brady [Sun, 11 Apr 2021 07:43:17 +0000 (08:43 +0100)] 
quieten a few debug messages

4 years agoSelecting best clock, but checking doesn't imp,ement the tiebreaker.
Mike Brady [Sat, 10 Apr 2021 15:30:47 +0000 (16:30 +0100)] 
Selecting best clock, but checking doesn't imp,ement the tiebreaker.

4 years agotry to add compensation for short timing disturbances, clamp the slew rate
Mike Brady [Fri, 9 Apr 2021 19:24:30 +0000 (20:24 +0100)] 
try to add compensation for short timing disturbances, clamp the slew rate

4 years agoMove the Sync hander into the message-handlers, add a function to generate a self...
Mike Brady [Thu, 8 Apr 2021 16:33:19 +0000 (17:33 +0100)] 
Move the Sync hander into the message-handlers, add a function to generate a self clock id

4 years agoworking with timing peer lists, it seems
Mike Brady [Thu, 8 Apr 2021 08:22:53 +0000 (09:22 +0100)] 
working with timing peer lists, it seems

4 years agomove follow-up code to a separate function.
Mike Brady [Wed, 7 Apr 2021 12:02:57 +0000 (13:02 +0100)] 
move follow-up code to a separate function.

4 years agoswitch to using flag bits
Mike Brady [Wed, 7 Apr 2021 11:46:07 +0000 (12:46 +0100)] 
switch to using flag bits

4 years agoreceives timing peer lists and sets flags accordingly.
Mike Brady [Wed, 7 Apr 2021 09:35:45 +0000 (10:35 +0100)] 
receives timing peer lists and sets flags accordingly.

4 years agoClang Format
Mike Brady [Mon, 5 Apr 2021 15:19:44 +0000 (16:19 +0100)] 
Clang Format

4 years agoAdd code to tag clock IPs that belong to the clock itself.
Mike Brady [Mon, 5 Apr 2021 15:17:53 +0000 (16:17 +0100)] 
Add code to tag clock IPs that belong to the clock itself.