]>
git.ipfire.org Git - thirdparty/nqptp.git/log
Mike Brady [Thu, 9 Dec 2021 17:36:53 +0000 (17:36 +0000)]
Fix some issues suggested by clang-tidy.
Mike Brady [Tue, 7 Dec 2021 15:07:38 +0000 (15:07 +0000)]
tweak PTP tracking coefficients
Mike Brady [Mon, 6 Dec 2021 18:48:38 +0000 (18:48 +0000)]
Continue to experiment with late follow-up correction weights.
Mike Brady [Tue, 30 Nov 2021 17:54:38 +0000 (17:54 +0000)]
Don't die if the clock table is full or address list is malformed -- just ignore any extra clocks or invalid ip specs.
Mike Brady [Sun, 28 Nov 2021 16:06:43 +0000 (16:06 +0000)]
Clang Format
Mike Brady [Sun, 28 Nov 2021 16:05:49 +0000 (16:05 +0000)]
Move to using CLOCK_MONOLITHIC_RAW to avoid NTP effects. Increase bias towards positive jitter changes. Bump interface version.
Mike Brady [Sat, 27 Nov 2021 09:48:55 +0000 (09:48 +0000)]
Add a comment, increase the weights of the jitter in forming the new offsets.
Mike Brady [Thu, 25 Nov 2021 20:43:51 +0000 (20:43 +0000)]
Allow up to 10 ms of negative jitter to be accepted. At the start, give extra weight to positive jitter as more likely to be a real thing.
Mike Brady [Thu, 25 Nov 2021 20:42:01 +0000 (20:42 +0000)]
clang format change only
Mike Brady [Thu, 25 Nov 2021 20:29:51 +0000 (20:29 +0000)]
Only install a service file if there isn't one there already.
Mike Brady [Sun, 14 Nov 2021 11:07:44 +0000 (11:07 +0000)]
Remove some redundant structure members and associated code.
Mike Brady [Tue, 9 Nov 2021 17:37:57 +0000 (17:37 +0000)]
Update README.md
Mike Brady [Tue, 9 Nov 2021 17:36:51 +0000 (17:36 +0000)]
Update README.md
Mike Brady [Mon, 8 Nov 2021 13:22:47 +0000 (13:22 +0000)]
Merge branch 'wakener' of github.com:mikebrady/nqptp into wakener
Documentation update.
Mike Brady [Mon, 8 Nov 2021 13:21:07 +0000 (13:21 +0000)]
Documentation update.
Mike Brady [Mon, 8 Nov 2021 13:19:34 +0000 (13:19 +0000)]
Merge branch 'development' into wakener
Documentation update.
Mike Brady [Mon, 8 Nov 2021 13:19:05 +0000 (13:19 +0000)]
Merge branch 'development' of github.com:mikebrady/nqptp into development
Documentation update.
Mike Brady [Mon, 8 Nov 2021 13:18:09 +0000 (13:18 +0000)]
Update README.md
Mike Brady [Sun, 7 Nov 2021 19:41:33 +0000 (19:41 +0000)]
Update README.md
Mike Brady [Sun, 7 Nov 2021 19:41:09 +0000 (19:41 +0000)]
Update README.md
Mike Brady [Sun, 7 Nov 2021 19:40:32 +0000 (19:40 +0000)]
Update README.md
Mike Brady [Sun, 7 Nov 2021 12:52:16 +0000 (12:52 +0000)]
Update the release notes.
Mike Brady [Sun, 7 Nov 2021 12:42:30 +0000 (12:42 +0000)]
Merge branch 'development' of https://github.com/mikebrady/nqptp into development
Newer documentation.
Mike Brady [Sun, 7 Nov 2021 12:42:01 +0000 (12:42 +0000)]
Update README.md
Mike Brady [Sun, 7 Nov 2021 10:52:45 +0000 (10:52 +0000)]
Remove superceded code. Calculate priority of ping based on priority of clock.
Mike Brady [Sat, 6 Nov 2021 18:29:54 +0000 (18:29 +0000)]
Follow an Announce of a better clock with an Announce of a worse one. The other end responds quicker. Don't wait for membership of a timing peer list to ping a clock into life -- more to do here.
Mike Brady [Fri, 5 Nov 2021 17:19:55 +0000 (17:19 +0000)]
Update RELEASE_NOTES.md
Mike Brady [Fri, 5 Nov 2021 17:08:51 +0000 (17:08 +0000)]
When a timing peer list is provided, wait for 0.5 sec for a FollowUp message from one of the peers. If none, send out bogus Announce messages to waken up any clocks out there. This is a hacky workaround for an Apple Silicon PTP bug/feature -- not sure which, but definitely not compatible with the IEEE PTP standard.
Mike Brady [Fri, 5 Nov 2021 12:46:39 +0000 (12:46 +0000)]
Experiment with replicating a Signaling packet coming from macOS and sending it to all clocks, to see if it wakens them. Try two different TLV payloads. It doesn't seem to have that function.
Mike Brady [Fri, 5 Nov 2021 12:43:45 +0000 (12:43 +0000)]
Add some PTP definitions -- a Signaling packet structure and a TLV structure
Mike Brady [Thu, 4 Nov 2021 16:30:04 +0000 (16:30 +0000)]
Merge branch 'development' of https://github.com/mikebrady/nqptp into development
Mike Brady [Thu, 4 Nov 2021 16:28:01 +0000 (16:28 +0000)]
Update RELEASE_NOTES.md
Mike Brady [Thu, 4 Nov 2021 16:12:35 +0000 (16:12 +0000)]
Merge branch 'development' of https://github.com/mikebrady/nqptp into development
Mike Brady [Thu, 4 Nov 2021 16:06:38 +0000 (16:06 +0000)]
Merge pull request #10 from fwcd/systemd-install-prefix
Use `$(libdir)` during systemd service install.
Many thanks for this!
fwcd [Wed, 3 Nov 2021 20:05:13 +0000 (21:05 +0100)]
Use libdir during systemd service install
Mike Brady [Tue, 2 Nov 2021 10:33:38 +0000 (10:33 +0000)]
Set the priorities to 248.
Mike Brady [Mon, 1 Nov 2021 17:40:45 +0000 (17:40 +0000)]
Send a faux announcment message to every timing peer. This seems to reawaken the PTP system in an Apple Silicon Mac.
Mike Brady [Sun, 31 Oct 2021 18:50:03 +0000 (18:50 +0000)]
Send an Announce message three times to each valid clock in a new timing peer list
Mike Brady [Sun, 31 Oct 2021 09:58:17 +0000 (09:58 +0000)]
get IPvX family when creating each clock record.
Mike Brady [Sat, 30 Oct 2021 17:28:08 +0000 (18:28 +0100)]
add ip family stuff to the clock records and the port sockets
Mike Brady [Fri, 29 Oct 2021 13:57:45 +0000 (14:57 +0100)]
Prepare an Announce message to send to all peers, hopfully to waken them up.
Mike Brady [Fri, 29 Oct 2021 13:46:44 +0000 (14:46 +0100)]
fix self id to allow for host byte order
Mike Brady [Fri, 29 Oct 2021 13:45:51 +0000 (14:45 +0100)]
add nctoh64() utility
Mike Brady [Fri, 29 Oct 2021 11:37:32 +0000 (12:37 +0100)]
Fix some -endian errors. Include port number in debug message.
Mike Brady [Fri, 29 Oct 2021 11:36:16 +0000 (12:36 +0100)]
cosmetic change only
Mike Brady [Fri, 29 Oct 2021 09:51:15 +0000 (10:51 +0100)]
Begin to add the ability to send out announce messages.
Mike Brady [Thu, 28 Oct 2021 15:09:17 +0000 (16:09 +0100)]
Add infrastructure for executing timed tasks, with a simple example.
Mike Brady [Wed, 28 Jul 2021 15:02:37 +0000 (16:02 +0100)]
Add a flag to selectively enable includion of the startup script.
Mike Brady [Thu, 22 Jul 2021 09:44:33 +0000 (10:44 +0100)]
Update RELEASE_NOTES.md
Mike Brady [Thu, 22 Jul 2021 09:27:47 +0000 (10:27 +0100)]
Updates from the main branch.
Mike Brady [Thu, 22 Jul 2021 09:25:47 +0000 (10:25 +0100)]
Update RELEASE_NOTES.md
Mike Brady [Thu, 22 Jul 2021 07:47:51 +0000 (08:47 +0100)]
Merge pull request #7 from hifiberry/main
Use DESTDIR
HiFiBerry [Thu, 22 Jul 2021 06:30:53 +0000 (08:30 +0200)]
Use DESTDIR
Mike Brady [Mon, 19 Jul 2021 09:16:03 +0000 (10:16 +0100)]
Candidate full implementation of BCM algorithm. Clang format.
Mike Brady [Fri, 16 Jul 2021 10:21:24 +0000 (11:21 +0100)]
Update RELEASE_NOTES.md
Mike Brady [Fri, 9 Jul 2021 07:56:03 +0000 (08:56 +0100)]
Create RELEASE_NOTES.md
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.
Mike Brady [Thu, 8 Jul 2021 21:29:38 +0000 (21:29 +0000)]
Check the ifa_addr before dereferencing it.
Mike Brady [Thu, 8 Jul 2021 20:48:11 +0000 (20:48 +0000)]
Remove misleading debug message.
Mike Brady [Thu, 8 Jul 2021 20:37:40 +0000 (20:37 +0000)]
Check return status from getifaddrs.
Mike Brady [Thu, 8 Jul 2021 13:42:39 +0000 (14:42 +0100)]
Update README.md
Mike Brady [Thu, 8 Jul 2021 13:38:51 +0000 (14:38 +0100)]
Update README.md
Mike Brady [Thu, 8 Jul 2021 13:35:01 +0000 (14:35 +0100)]
Update 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.
Mike Brady [Thu, 8 Jul 2021 11:06:17 +0000 (12:06 +0100)]
Update README.md
Mike Brady [Thu, 8 Jul 2021 11:05:19 +0000 (12:05 +0100)]
Update README.md
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.
Mike Brady [Wed, 7 Jul 2021 21:36:45 +0000 (21:36 +0000)]
clock becoming master was using obselete information, and quieten a warning.
Mike Brady [Wed, 7 Jul 2021 17:26:26 +0000 (17:26 +0000)]
Merge branch 'development' into main
Updates.
Mike Brady [Tue, 6 Jul 2021 19:05:24 +0000 (20:05 +0100)]
Update Makefile.am
USE_GIT_VERSION instead of USE_GIT
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.
Mike Brady [Tue, 6 Jul 2021 16:00:36 +0000 (17:00 +0100)]
Update README.md
Mike Brady [Tue, 6 Jul 2021 15:57:34 +0000 (16:57 +0100)]
Update README.md
Mike Brady [Tue, 6 Jul 2021 15:52:44 +0000 (16:52 +0100)]
Update README.md
Mike Brady [Fri, 25 Jun 2021 15:22:01 +0000 (16:22 +0100)]
fix 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
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
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.
Mike Brady [Wed, 23 Jun 2021 18:58:20 +0000 (19:58 +0100)]
Update README.md
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.
Mike Brady [Tue, 22 Jun 2021 09:51:37 +0000 (10:51 +0100)]
Add support for FreeBSD. No installer yet.
Mike Brady [Mon, 21 Jun 2021 19:46:26 +0000 (20:46 +0100)]
Update README.md
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.
Mike Brady [Sat, 19 Jun 2021 17:30:23 +0000 (18:30 +0100)]
Remove many redundant #includes and do a clang format
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.
Mike Brady [Sun, 6 Jun 2021 14:54:30 +0000 (15:54 +0100)]
Forgot!
Merge branch 'development' of github.com:mikebrady/nqptp into development
Mike Brady [Sat, 5 Jun 2021 17:16:18 +0000 (18:16 +0100)]
Remove all that lookback stuff.
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.
Mike Brady [Sat, 5 Jun 2021 06:58:22 +0000 (07:58 +0100)]
Update README.md
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.
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.
Mike Brady [Fri, 14 May 2021 21:12:47 +0000 (22:12 +0100)]
fix the install-exec-hook stuff
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
Mike Brady [Fri, 14 May 2021 16:13:54 +0000 (17:13 +0100)]
cosmetic
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
Mike Brady [Fri, 14 May 2021 10:34:10 +0000 (11:34 +0100)]
Clang
Mike Brady [Fri, 14 May 2021 10:23:57 +0000 (11:23 +0100)]
Begin to use git versioning
Mike Brady [Thu, 13 May 2021 20:16:12 +0000 (21:16 +0100)]
Bump for changes to conditioning
Mike Brady [Thu, 13 May 2021 20:13:02 +0000 (21:13 +0100)]
Quieten a message
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.