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
This patch adds a new timer to be used by the client side unicast
negotiation logic.
Signed-off...
ffdb3f7192b3d39f1a29248491ccaf2b685c6ab9 authored over 6 years ago
This patch adds configuration file support for a table of unicast
masters. Each table lives in ...
Signed-off-by: Richard Cochran <[email protected]>
1d450540c75fda679a2948c0a8bc14d572326db8 authored over 6 years agoSigned-off-by: Richard Cochran <[email protected]>
1ccc55ef079014b5b81d90a33657d12e7041e358 authored over 6 years agoThis will be needed by unicast mode.
Signed-off-by: Richard Cochran <[email protected]>
05dce31d81b7d230a11abf28256719e1c1ab6d2b authored over 6 years agoSigned-off-by: Richard Cochran <[email protected]>
bc18131d277d9b4b32eed8a49bedba0bb39be3b2 authored over 6 years ago
The function, str2addr(), will be needed by the upcoming unicast
client code.
Signed-off-by: Ri...
40480f3b28b4172d261c5c74c220f9c83b4f98df authored over 6 years ago
All of the callers of transport_peer() use hard coded magic numbers.
This patch fixes them to us...
Signed-off-by: Rafaël Carré <[email protected]>
d52ef498cf999d411fb7261753219aa1463bc7c1 authored over 6 years agoSigned-off-by: Rafaël Carré <[email protected]>
ee2a9d4ac998595a5b1093c386789cce7a267904 authored over 6 years agoSigned-off-by: Rafaël Carré <[email protected]>
bdaff2ecd2c6c7c630f39cfa5c89b74b476a3c3b authored over 6 years agoSigned-off-by: Rafaël Carré <[email protected]>
77995137bf854a03d6a6555a88ea19deee0e37fa authored over 6 years agomessage length is already included in the msg structure
Signed-off-by: Rafaël Carré <funman@vid...
3c7fa5dd429b9ca82e4d890347f7685cdcaf5cf2 authored over 6 years agoRemove unused sockaddr size argument, and pass address using specific struct
Signed-off-by: Raf...
5219b6417faa5248e6093828732ab9fc713b82be authored over 6 years ago
Consistenly use the pid_eq() and cid_eq() helper functions. Move the
functions into utils.h (mak...
If ptp4l is running as a boundary clock, and multiple master ports
share a hardware clock that i...
ptp4l runs clockcheck on an incoming PTP message before checking its
domain number. If the time ...
With increasing unicast support, the code needs to identify unicast
messages more often. This p...
According to the standard, unicast Sync messages are to be sent with
the interval field set to 1...
We will be getting more and more of these. Let's put them into their
own area.
Signed-off-by: ...
a4981b20502dabaf8c83aa019f06152c9dbfc8bb authored over 6 years agoAccording to the standard, this field is special for unicast messages.
Signed-off-by: Richard C...
494643d1fb3bf69a8d67d935ba043ed367590dde authored over 6 years agoThis fix allows disabling tc_spanning_tree explicitly.
Signed-off-by: Christoph Seifert <christ...
1bf9d1e3924f73379c6c42036ec5e0805e93734d authored over 6 years ago
Richard Hill reported an occasional NULL pointer deference in
port_delay_request() when in hybri...
Clearly indicate the value is the maximum offset for which clock skewing
will be used at the sta...
This patch adds a new configuation option that enables transparent
clock mode. When TC mode is ...
The E2E TC forwards Announce, Delay_Req, Delay_Resp, Management,
Signaling, and Sync messages, a...
According to 1588, PTP message loops are simply someone else's problem
with respect to transpare...
Signed-off-by: Richard Cochran <[email protected]>
bdbbe24ef960b6aabf9f2c6e0199b35f47f0d954 authored over 6 years ago
The P2P TC forwards Announce, Management, Signaling, and Sync
messages, consumes P2P Delay messa...
This patch adds code that sends an event messages received on one port out
all the other ports a...
Signed-off-by: Richard Cochran <[email protected]>
fd80721493093b1798a172d71fdf2f43b31a38b6 authored over 6 years ago
The transparent clock code will want to set qualification timeouts and
perform end to end delay ...
This will be needed by the end-to-end transparent clock code.
Signed-off-by: Richard Cochran <r...
8f2b1db4fd3c47fd616eb16ccbb2bd884cafdc74 authored over 6 years ago
As we add more and more options, it is getting to be a chore to add
each new option to multiple ...
When masterOnly is true, the port always returns NULL when computing
its best foreign master. A...
Signed-off-by: Richard Cochran <[email protected]>
0c30ab463f13073bc48fc9a3393c2e1bac1ef116 authored almost 7 years agoSigned-off-by: Richard Cochran <[email protected]>
4545fd1150964b15adb93adcacb64f3fc18991aa authored almost 7 years agoSigned-off-by: Richard Cochran <[email protected]>
c7fb52572179b4009cd7dcb7e0a841af3808a7d2 authored almost 7 years ago
The Telecom Profiles G.8275.1 and G.8275.2 have invented a new
per-port and per-clock attribute,...
The first half of the telecom algorithm from G.8275.1 and G.8275.2
differs from the one in 1588,...
There is no need to keep two copies of the data set comparison
function. This patch adds a meth...
Add a batch mode, where the commands are taken from the command line
instead of the standard inp...
When using a PPS source with no source clock specified with the -s
option, avoid referencing a N...
Check if a signal was received when waiting for ptp4l in the automatic
mode to not get stuck in ...
If a ptp4l or phc2sys process is terminated (e.g. due to a crash) and
timemaster was running for...
Use the rtnl_get_ts_device() function to get the name of the slave
interface which will be times...
Change the rtnl_get_ts_label() function to accept the name of the master
interface and the buffe...
As of 510777deca1d message layer no longer returns -ETIME. Callers of
msg_post_recv() are expec...
As of 510777deca1d message layer no longer returns -ETIME. Callers of
msg_post_recv() are expec...
In pmc, there is a little bug (only text, not functional):
When pmc is called with the managemen...
[RC: Added -f flag help and removed extraneous text.]
Signed-off-by: Peter Schneider <peter@psc...
89969b4b0f3e473eec771affe16bb0957fa6857c authored almost 7 years ago
Replaced usage of variable 'verbose' with struct config item 'verbose'.
Original variable remove...
Replaced usage of variable 'message_tag' with struct config item
'message_tag'. Original variabl...
Use struct config item 'clock_servo' for parameter handling. Copy this to
node.servo_type afterw...
Signed-off-by: Peter Schneider <[email protected]>
c93045b37b0732fabb24f8aae2a0fdd3f29a023a authored almost 7 years ago
Copy 'node.sanity_freq_limit' to struct config item 'sanity_freq_limit'.
Check for 'servo_type' ...
Use struct config item 'kernel_leap' for parameter handling. Copy this to
node.kernel_leap after...
Signed-off-by: Peter Schneider <[email protected]>
79d290e22258979a9043a92d8d4cfe1c55b40734 authored almost 7 years ago
Replaced usage of variable 'use_syslog' with struct config item
'use_syslog'. Original variable ...
Signed-off-by: Peter Schneider <[email protected]>
c70f9b3e07891dd8b307bb14e99d1d3e202d073e authored almost 7 years ago
Replaced usage of variable 'domain_number' with struct config item
'domainNumber'. Original vari...
Replaced usage of variable 'print_level' with struct config item
'logging_level'. Original varia...
If the "free_running" option is set, the "no adjust" calculates and
prints an estimation of the ...
When using long chains of transparent clocks, the recommended practice is
to measure the rate ra...
The transparent clock will want to have two copies of certain messages,
one for forwarding and o...
The majority of the callers of transport_send() use hard coded magic
numbers. This patch fixes ...
Up until now, the code has always fetched the time stamp immediately
after transmitting a messag...
Now that we have a helper routine to find the suffix, use that instead of
open coding the same l...
When a messages is sent with the DEFER_EVENT flag, the lower transport
code does not fetch the t...
Originally the 'event' parameter to transport_send() was a single
Boolean flag. Over time, we g...
Signed-off-by: Anders Selhammer <[email protected]>
da7bc1db1ecc865361efda9f9fb888db80cda08e authored almost 7 years agoSigned-off-by: Anders Selhammer <[email protected]>
b36142cb5176bb81ea05e7cdbc748410afa13447 authored almost 7 years ago
When compiling with "-O1 -D_FORTIFY_SOURCE=1", gcc throws a false positive
warning. The code is...
The PortAddress structure has no space for the actual address and should
be used only as a point...
The make install target tries to install a man page that does not
exist. This patch fixes the m...
This will allow adding alternative algorithms as defined in PTP profiles.
Signed-off-by: Richar...
b05991dbb85f2f60051f06581f9280b90cf18420 authored almost 7 years agoThis will allow adding alternative algorithms as defined in PTP profiles.
Signed-off-by: Richar...
ec33010f56c675256511e1e63d45bf0773581fca authored almost 7 years ago
Instead of using a hard coded algorithm, let the caller provide the
function that performs the c...
This code will be shared by future alternative algorithms.
Signed-off-by: Richard Cochran <rich...
dc1b7c66c6a75b2e93086801f272ef00509e8d53 authored almost 7 years ago
This patch makes a number of subroutines into global functions in order
to share code with the T...
This patch places the internal port data structure into a common header
for use by the original ...
This paves the way to allow different implementations for the upcoming
Transparent Clock code.
...
c17040582219e7be88abdfece67bf36c89f3c4e2 authored almost 7 years ago
When computing the next port state based on a FSM event, much of the logic
will stay the same fo...
The logic that adds TLVs to the end of a message mixes up the 'L'
length in "TLV" with the total...
Signed-off-by: Richard Cochran <[email protected]>
d8a9591dac6da87190f3e223d1ef87e433401182 authored almost 7 years ago
Valgrind complains about memory leaks, none of which are serious. This
patch frees the allocati...
We will want to use this macro in more than one source file. This patch
moves the macro into th...
Valgrind is complaining that the pmc program is using uninitialized
data. Actually the data are...
The 1588 standard defines one step operation for both Sync and
PDelay_Resp messages. Up until n...
On the transmit path, the port-level code calls msg_sots_missing()
directly, but on receive this...
Up until now, one step operation was controlled by a combination of
options, namely time_stampin...
I stumbled across a kernel commit that fixes the macro that convert
between file descriptors and...
Make the log output a bit more clear by changing how we inform the user
when the local clock is ...
[ RC - Correct the punctuation and abbreviation. ]
Signed-off-by: Peter Schneider <[email protected]...
c4e58792339813925e7554b3ad08e4ee9f1aa6b8 authored almost 7 years ago
[ RC: - Add new flag into usage message.
- Fix up coding style of the automatic variables....
pmc_create() calls transport_create(), which sets the open function
for the interface 'iface' to...
In a ptp unaware network (like the telecom profile for frequency sync
G.8265.1), both the RTD an...
We always but braces around 'if' blocks.
Signed-off-by: Anders Selhammer <anders.selhammer@est....
9320f768e22b1aac72f4fa42d9492fde57af1379 authored almost 7 years ago
The function ts_to_Timestamp() is now just a wrapper around
tmv_to_Timestamp(). Simplify code b...
Signed-off-by: Michael Brown <[email protected]>
1e19ce204a1f1ab2e2ae704c21a9a4c7b14f217c authored almost 7 years ago