File tree Expand file tree Collapse file tree 8 files changed +31
-12
lines changed Expand file tree Collapse file tree 8 files changed +31
-12
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
16
## [ 0.2.1] - 2024-06-07
4
17
5
18
### Added
32
45
### Fixed
33
46
- Fixed race condition during startup
34
47
48
+ [ 0.2.2 ] : https://github.com/pendulum-project/statime/compare/v0.2.2...v0.2.1
35
49
[ 0.2.1 ] : https://github.com/pendulum-project/statime/compare/v0.2.0...v0.2.1
36
50
[ 0.2.0 ] : https://github.com/pendulum-project/statime/compare/v0.1.0...v0.2.0
37
51
[ 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 = [
9
9
resolver = " 2"
10
10
11
11
[workspace .package ]
12
- version = " 0.2.1 "
12
+ version = " 0.2.2 "
13
13
edition = " 2021"
14
14
license = " Apache-2.0 OR MIT"
15
15
repository = " https://github.com/pendulum-project/statime"
@@ -53,7 +53,7 @@ timestamped-socket = "0.2.4"
53
53
54
54
# our own crates used as dependencies, same version as the workspace version
55
55
# 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" }
57
57
58
58
[profile .release ]
59
59
debug = 2
Original file line number Diff line number Diff line change 1
1
<!-- ---
2
- title: STATIME(8) statime 0.2.1 | statime
2
+ title: STATIME(8) statime 0.2.2 | statime
3
3
--- -->
4
4
5
5
# NAME
Original file line number Diff line number Diff line change 1
1
<!-- ---
2
- title: STATIME.TOML(5) statime 0.2.1 | statime
2
+ title: STATIME.TOML(5) statime 0.2.2 | statime
3
3
--- -->
4
4
5
5
# NAME
Original file line number Diff line number Diff line change 1
1
.\" Automatically generated by Pandoc 3.4
2
2
.\"
3
- .TH "STATIME" "8" "" "statime 0.2.1 " "statime"
3
+ .TH "STATIME" "8" "" "statime 0.2.2 " "statime"
4
4
.SH NAME
5
5
\f[CR] statime \f[ R ] \- The Statime PTP daemon for linux
6
6
.SH SYNOPSIS
Original file line number Diff line number Diff line change 1
1
.\" Automatically generated by Pandoc 3.4
2
2
.\"
3
- .TH "STATIME.TOML" "5" "" "statime 0.2.1 " "statime"
3
+ .TH "STATIME.TOML" "5" "" "statime 0.2.2 " "statime"
4
4
.SH NAME
5
5
\f[CR] statime.toml \f[ R ] \- configuration file for the statime
6
6
ptp\- daemon
@@ -36,12 +36,17 @@ Together with the \f[CR]domain\f[R] it identifies a domain.
36
36
\f[CR] priority1 \f[ R ] = \f[I] priority \f[ R ] (\f[B] 128 \f[ R ] )
37
37
A tie breaker for the best master clock algorithm in the range
38
38
\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.
40
40
.TP
41
41
\f[CR] priority2 \f[ R ] = \f[I] priority \f[ R ] (\f[B] 128 \f[ R ] )
42
42
A tie breaker for the best master clock algorithm in the range
43
43
\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.
45
50
.TP
46
51
\f[CR] virtual \- system \- clock \f[ R ] = \f[I] bool \f[ R ] (\f[B] false \f[ R ] )
47
52
Use a virtual overlay clock instead of adjusting the system clock.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl LinuxClock {
36
36
use clock_steering:: Clock ;
37
37
38
38
let ts = self . clock . now ( ) ?;
39
- if ts. seconds < 0 || ts. seconds > ( u64:: MAX / 1000000000 ) as i64 {
39
+ if ts. seconds < 0 || ts. seconds as i64 > ( u64:: MAX / 1000000000 ) as i64 {
40
40
self . clock . step_clock ( TimeOffset {
41
41
seconds : -ts. seconds + 1 ,
42
42
nanos : 0 ,
@@ -181,7 +181,7 @@ impl PortTimestampToTime for LinuxClock {
181
181
fn port_timestamp_to_time ( & self , mut ts : timestamped_socket:: socket:: Timestamp ) -> Time {
182
182
// get_tai gives zero if this is a hardware clock, and the needed
183
183
// correction when this port uses software timestamping
184
- ts. seconds += self . get_tai_offset ( ) . expect ( "Unable to get tai offset" ) as libc :: time_t ;
184
+ ts. seconds += self . get_tai_offset ( ) . expect ( "Unable to get tai offset" ) as _ ;
185
185
Time :: from_fixed_nanos ( ts. seconds as i128 * 1_000_000_000i128 + ts. nanos as i128 )
186
186
}
187
187
}
You can’t perform that action at this time.
0 commit comments