Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/nwtime/linuxptp
Linux PTP Project
https://github.com/nwtime/linuxptp
Renewing of the transport on announce/sync timeout is needed in the
client-only mode to avoid ge...
When the best port is changed, but the ID of the best clock doesn't
change (e.g. a passive port ...
Don't perform the sanity check on receive timestamps from ports in
non-slave states to avoid fal...
The tx_timestamp_timeout configuration defines the number of
milliseconds to wait for a Tx times...
Add serial baudrate configuration option. Default to 9600 bps.
Signed-off-by: Lars Munch <lars@...
47c9a2d35d567e7f4e87d2c01872fa1cce3c20b2 authored over 3 years ago by Lars Munch <[email protected]>
Update leapfile documentation to note the file will be
reloaded if modified.
Signed-off-by: Lar...
bf4eee2aab9832023c542a38c16ee1b5939167f3 authored over 3 years ago by Lars Munch <[email protected]>
Read returns 0 (the traditional "end-of-file" return) when a remote
peer performs an orderly shu...
tm_isdst needs to be initialized to make sure mktime does not fail
on recent versions of glibc
...
63fc1ef4fd5e5fc45dd4de3bf27920bb109a4357 authored over 3 years ago by Lars Munch <[email protected]>
The PTP messageLength field is redundant because the length of a PTP
message is precisely determ...
Convert the length of the generated follow-up message to network order.
This fixes reading and s...
The port other than SLAVE (LISTENING port) prints an error
"port 1: master state recommended in ...
The LISTENING port prints continuously
"selected best master clock 000000.0000.000003
updating U...
- Add support in the pmc tool
- Add the TLV in port module.
Signed-off-by: Erez Geva <erez.geva...
1666c5c6003ea571d81ba8f1345e3140d8a92129 authored over 3 years ago by Erez Geva <[email protected]>Set the default domain numbers according to the ITU-T standards
Signed-off-by: Lars Munch <lars...
e3939f4636826b726179117042205e013c5a71fd authored over 3 years ago by Lars Munch <[email protected]>
According to IEEE 1588 The slave only flag in the SLAVE_ONLY TLV
is bit 0 and not bit 1 as in t...
When using the 'servo_offset_threshold' configuration option, the
internal servo state will tran...
Use reverse Christmas tree style in mgt_post_recv and _pre_send.
Signed-off-by: Richard Cochran...
ef9ba9489c2f664ea34e5e4dbddbb76cddef5254 authored almost 4 years ago by Richard Cochran <[email protected]>
As machine byte order may vary.
Ensure TLV_PORT_STATS_NP statistics use defined order.
As most ...
5b4b623edefcf752a4284cba6aa4ff6296223455 authored almost 4 years ago by Erez Geva <[email protected]>This fixes errors reported by the -fsanitize=undefined sanitizer.
Before accepting the message ...
68eb7cd4e8406fb653cd1356f5f989159d54b6e9 authored almost 4 years ago by Miroslav Lichvar <[email protected]>The value needs to be shifted to right to get nanoseconds.
Signed-off-by: Miroslav Lichvar <mli...
efab29682c7d752db018e75e51fd653caa7d629f authored almost 4 years ago by Miroslav Lichvar <[email protected]>
Allow the -s option to be used together with the -d option again. The
PHC is used in the PPS mod...
This fixes "taking address of packed member ... may result in an
unaligned pointer value [-Waddr...
Commit 3c083f4503ab claims to fix a null pointer de-reference.
However, that particular bug had ...
Both 'rta' and 'rtb' are not properly initialized to zero.
Fixed this by assigning to correct a...
a62f80440e3bd216bbacfeb7f3cc4bfdb9b80070 authored almost 4 years ago by Wong Vee Khee <[email protected]>Signed-off-by: Marcin Miklas <[email protected]>
a5fdb9d50162d6f6708bc6d80ebcb31c11361a5a authored almost 4 years ago by Marcin Miklas <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
6bee6ce1ccedd694f99cedbd9c3c7e89302138bb authored almost 4 years ago by Richard Cochran <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
46b03e65f8662f7074a58467e0ba00b0b763963f authored almost 4 years ago by Richard Cochran <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
c46260a78db38cee29c4908e8d958d9b9bfd7d5b authored almost 4 years ago by Richard Cochran <[email protected]>
IEEE 1588-2019 specified new UInteger4 type minorVersionPTP field
in header, and minorVersionNum...
This code changes brings in the ability to program the acceptable
clockClass threshold beyond wh...
The recvmsg() call can return zero for a zero-length UDP message, which
should be handled as a b...
When clock stepping is unable to happen instantaneously the subsequent
timestamps after a clock ...
This prevents conflicts on the new UDS-RO port.
Signed-off-by: Miroslav Lichvar <mlichvar@redha...
27fa246a79f014c505b720b514cf7bff4b1c5e5d authored almost 4 years ago by Miroslav Lichvar <[email protected]>
Add a second UDS port to allow untrusted applications to monitor ptp4l.
On this "read-only" UDS ...
In port_open(), don't assume that UDS ports always have to have a zero
number. Check the transpo...
Drop non-management messages on the UDS port early in the processing to
prevent them from changi...
In preparation for a new read-only UDS port, rename variables of the
current UDS port to make it...
No COMMAND actions are currently supported, but check the port early in
clock_manage() before re...
Subscribers to NOTIFY_TIME_SYNC will be notified on every clock
synchronization.
[ RC:
- Don...
A typo caused the loss of the information in field "nanoseconds_lsb" in
ScaledNs struct during p...
Previously, only the logical port number was emitted for most
port-related log messages. Now, th...
Adds a string to the port struct that can easily identify a port.
This is intended to be used in...
The slaveOnly and masterOnly options will be deprecated in favor of
clientOnly and serverOnly, r...
Signed-off-by: Richard Cochran <[email protected]>
f7f6edf830ddfb1196ff57935bf40dd51a129faa authored almost 4 years ago by Richard Cochran <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
fe01cc7c964296321e3c0de2412ef3f1282fa774 authored almost 4 years ago by Richard Cochran <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
4c3b99b72052254e3fad2915be3bc4bfaff10a39 authored almost 4 years ago by Richard Cochran <[email protected]>
Bring the built in leap second table up to date through IERS Bulletin C61.
No new leap s...
In the era of remote work the different terminal connections are used for
testing and debugging ...
In the scenario where a port link goes down and up, current code checks
the port's phc_index aga...
Signed-off-by: Richard Cochran <[email protected]>
Reviewed-by: Jacob Keller <jacob.e.kel...
Signed-off-by: Richard Cochran <[email protected]>
Reviewed-by: Jacob Keller <jacob.e.kel...
Signed-off-by: Richard Cochran <[email protected]>
Reviewed-by: Jacob Keller <jacob.e.kel...
Signed-off-by: Richard Cochran <[email protected]>
Reviewed-by: Jacob Keller <jacob.e.kel...
Signed-off-by: Richard Cochran <[email protected]>
Reviewed-by: Jacob Keller <jacob.e.kel...
Signed-off-by: Richard Cochran <[email protected]>
Reviewed-by: Jacob Keller <jacob.e.kel...
Signed-off-by: Richard Cochran <[email protected]>
Reviewed-by: Jacob Keller <jacob.e.kel...
Signed-off-by: Richard Cochran <[email protected]>
f888b57789fd603782458f2e607bcf8439d5688a authored about 4 years ago by Richard Cochran <[email protected]>
Using the mode PPS without a PHC source causes a segfault in strdup()
in the clock_add() functio...
The ptp4l/phc2sys BC can stuck in sync fault while port is in transitional
UNCALIBRATED state:
...
Add dbg print about clock state change events in clock_reinit() in the
form:
pru10: state ch...
Normally ptp4l will update the unicast subscriptions based on changes
in port state. However, w...
Commit ac7d69bbc476 ("pmc_agent: Convert the method that queries the
port properties.") had the ...
Signed-off-by: Richard Cochran <[email protected]>
c4a5eef1f4763805e6e2a2d25eb1d436018d4745 authored about 4 years ago by Richard Cochran <[email protected]>
Now that the PMC agent update method polls for port state notifications,
there is no need to cal...
The one and only call site of run_pmc_events() has been eliminated.
Remove the unused code.
Sig...
f6abdcdd3742fd8cf3c7ae084c3509d8f6bbc188 authored about 4 years ago by Richard Cochran <[email protected]>
This will help to simplify the consolidation of the automatic and
manual modes.
Signed-off-by: ...
fd33ed1bb8d83a04e445d356601c927f1cffa42a authored about 4 years ago by Richard Cochran <[email protected]>
In the manual wait mode, if the system clock is not being used, the
program closes the PMC agent...
When using a PPS time source with the -w flag, the program closes the PMC
agent's connection onc...
When using a PPS time source, the PHC character device or network interface
specified using the ...
When using a PPS time source, the code only checks the destination
clock after performing much s...
The main program determines whether a PPS device is the time source
with an open-coded test for ...
Node is not a very descriptive name. Rename it.
Signed-off-by: Richard Cochran <richardcochran...
ff8776ebe3f4e0bb1c44e4b12c8610886ed15775 authored about 4 years ago by Richard Cochran <[email protected]>
The names of the source and destination clocks are generated by
duplicating command line argumen...
When started in automatic mode, the phc2sys program first queries the
local clock identification...
Prefix the function with the module name and correct the return code
semantics.
The active word...
ac7d69bbc476b94d76e5cee4992b9682f003feaf authored about 4 years ago by Richard Cochran <[email protected]>
The number of ports is already available in the cached default data
set. Use it directly.
Sign...
6bc9eb81dd254d90b5fe059684271b9beebf6b9b authored about 4 years ago by Richard Cochran <[email protected]>
This patch renames the function to have the module prefix and corrects the
return code semantics...
If both the -w and -O command line options are specified (or when
using -w when both source and ...
The man page lists only three of the five possible values. Add the two
missing ones to the list...
Signed-off-by: Richard Cochran <[email protected]>
a81f293af2adfd1cdf3f25b08ee7452f10503aab authored about 4 years ago by Richard Cochran <[email protected]>
The "free_running" configuration option is meant to allow running the
software without actually ...
This patch renames the function to have the module prefix and tries to
put into words what it do...
In the update_pmc_node() method, reduce the expression
!(x < y) to (x >= y).
While we're at it,...
fb92fec7cef9ee3345950c2633a7781b8bd3ca08 authored about 4 years ago by Richard Cochran <[email protected]>
The monotonic clock can never go backwards. If you take T1 and later T2
from that clock, then (...
If the pmc pointer is not set, then there is no need to read the time only
to later discard the ...
The main method that causes the PMC agent to update its status takes a flag
that results in diff...
This patch renames the function to have the module prefix and corrects the
return code semantics...
The run_pmc function is used by several of the PMC agent methods, but it
breaks the pattern of r...
Signed-off-by: Richard Cochran <[email protected]>
Suggested-by: Vladimir Oltean <olteanv...
Signed-off-by: Richard Cochran <[email protected]>
d95bb9f9d62f4f372934905e97e052aa68dcfc58 authored about 4 years ago by Richard Cochran <[email protected]>
The PMC agent's implementation should not be exposed to its users. This
patch hides the details...
Signed-off-by: Richard Cochran <[email protected]>
5dd47c873cae8e0a2815b43c1ef3a86b9aca9dac authored about 4 years ago by Richard Cochran <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
bb6865cdf59572fcb09c11d549828269281c6841 authored about 4 years ago by Richard Cochran <[email protected]>
The logic for placing PTP management queries migrated out of phc2sys into
pmc_common in order to...
In preparation of moving these functions to pmc_common.c, break the
lines to a maximum of 80 cha...
In preparation of a trivial movement of code to pmc_common.c, remove the
"static" keyword from t...
This creates a smaller structure within phc2sys_private, which embeds
all properties related to ...
The code through which phc2sys sends various PTP management messages to
ptp4l via pmc can be reu...
Instead of unconditionally creating a servo for each clock in their
initialization, add the serv...
Remove duplicated code specific to the ntpshm servo configuration.
Signed-off-by: Miroslav Lich...
96b5fd2b7e4b52cb3abfbb8202452928c55ecec4 authored about 4 years ago by Miroslav Lichvar <[email protected]>