File tree Expand file tree Collapse file tree 8 files changed +32
-12
lines changed
Expand file tree Collapse file tree 8 files changed +32
-12
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ 0.2.2] - 2024-20-09
4+
5+ ### Added
6+ - Added support for the path trace option
7+ - Added support for disabling synchronization of the system clock, touching only the ptp hardware clocks.
8+
9+ ### Changed
10+ - Updated dependencies
11+ - Be less chatty about unexpected PTPv1 messages
12+
13+ ### Fixed
14+ - Correctly ignore rogue masters in the PTP network
15+
316## [ 0.2.1] - 2024-06-07
417
518### Added
3245### Fixed
3346- Fixed race condition during startup
3447
48+ [ 0.2.2 ] : https://github.com/pendulum-project/statime/compare/v0.2.2...v0.2.1
3549[ 0.2.1 ] : https://github.com/pendulum-project/statime/compare/v0.2.0...v0.2.1
3650[ 0.2.0 ] : https://github.com/pendulum-project/statime/compare/v0.1.0...v0.2.0
3751[ 0.1.0 ] : https://github.com/pendulum-project/statime/releases/tag/v0.1.0
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ exclude = [
99resolver = " 2"
1010
1111[workspace .package ]
12- version = " 0.2.1 "
12+ version = " 0.2.2 "
1313edition = " 2021"
1414license = " Apache-2.0 OR MIT"
1515repository = " https://github.com/pendulum-project/statime"
@@ -53,7 +53,7 @@ timestamped-socket = "0.2.4"
5353
5454# our own crates used as dependencies, same version as the workspace version
5555# NOTE: keep this part at the bottom of the file, do not change this line
56- statime = { version = " 0.2.1 " , path = " ./statime" }
56+ statime = { version = " 0.2.2 " , path = " ./statime" }
5757
5858[profile .release ]
5959debug = 2
Original file line number Diff line number Diff line change 11<!-- ---
2- title: STATIME(8) statime 0.2.1 | statime
2+ title: STATIME(8) statime 0.2.2 | statime
33--- -->
44
55# NAME
Original file line number Diff line number Diff line change 11<!-- ---
2- title: STATIME.TOML(5) statime 0.2.1 | statime
2+ title: STATIME.TOML(5) statime 0.2.2 | statime
33--- -->
44
55# NAME
Original file line number Diff line number Diff line change 11.\" Automatically generated by Pandoc 3.4
22.\"
3- .TH "STATIME" "8" "" "statime 0.2.1 " "statime"
3+ .TH "STATIME" "8" "" "statime 0.2.2 " "statime"
44.SH NAME
55\f[CR] statime \f[ R ] \- The Statime PTP daemon for linux
66.SH SYNOPSIS
Original file line number Diff line number Diff line change 11.\" Automatically generated by Pandoc 3.4
22.\"
3- .TH "STATIME.TOML" "5" "" "statime 0.2.1 " "statime"
3+ .TH "STATIME.TOML" "5" "" "statime 0.2.2 " "statime"
44.SH NAME
55\f[CR] statime.toml \f[ R ] \- configuration file for the statime
66ptp\- daemon
@@ -36,12 +36,17 @@ Together with the \f[CR]domain\f[R] it identifies a domain.
3636\f[CR] priority1 \f[ R ] = \f[I] priority \f[ R ] (\f[B] 128 \f[ R ] )
3737A tie breaker for the best master clock algorithm in the range
3838\f[CR] 0..256 \f[ R ] .
39- \f[CR] 0 \f[ R ] being highest priority an \f[CR] 255 \f[ R ] the lowest.
39+ \f[CR] 0 \f[ R ] being the highest priority and \f[CR] 255 \f[ R ] the lowest.
4040.TP
4141\f[CR] priority2 \f[ R ] = \f[I] priority \f[ R ] (\f[B] 128 \f[ R ] )
4242A tie breaker for the best master clock algorithm in the range
4343\f[CR] 0..256 \f[ R ] .
44- \f[CR] 0 \f[ R ] being highest priority an \f[CR] 255 \f[ R ] the lowest.
44+ \f[CR] 0 \f[ R ] being the highest priority and \f[CR] 255 \f[ R ] the lowest.
45+ .TP
46+ \f[CR] path \- trace \f[ R ] = \f[I] bool \f[ R ]
47+ The instance uses the path trace option.
48+ This allows detecting clock loops when enabled on all instances in the
49+ network.
4550.TP
4651\f[CR] virtual \- system \- clock \f[ R ] = \f[I] bool \f[ R ] (\f[B] false \f[ R ] )
4752Use a virtual overlay clock instead of adjusting the system clock.
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ impl LinuxClock {
3636 use clock_steering:: Clock ;
3737
3838 let ts = self . clock . now ( ) ?;
39- if ts. seconds < 0 || ts. seconds > ( u64:: MAX / 1000000000 ) as i64 {
39+ #[ allow( clippy:: unnecessary_cast) ]
40+ if ts. seconds < 0 || ts. seconds as i64 > ( u64:: MAX / 1000000000 ) as i64 {
4041 self . clock . step_clock ( TimeOffset {
4142 seconds : -ts. seconds + 1 ,
4243 nanos : 0 ,
@@ -181,7 +182,7 @@ impl PortTimestampToTime for LinuxClock {
181182 fn port_timestamp_to_time ( & self , mut ts : timestamped_socket:: socket:: Timestamp ) -> Time {
182183 // get_tai gives zero if this is a hardware clock, and the needed
183184 // correction when this port uses software timestamping
184- ts. seconds += self . get_tai_offset ( ) . expect ( "Unable to get tai offset" ) as libc :: time_t ;
185+ ts. seconds += self . get_tai_offset ( ) . expect ( "Unable to get tai offset" ) as i64 ;
185186 Time :: from_fixed_nanos ( ts. seconds as i128 * 1_000_000_000i128 + ts. nanos as i128 )
186187 }
187188}
You can’t perform that action at this time.
0 commit comments