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

fd: Introduce a unicast request timer.

This patch adds a new timer to be used by the client side unicast
negotiation logic.

Signed-off...

ffdb3f7192b3d39f1a29248491ccaf2b685c6ab9 authored over 6 years ago
config: Introduce a unicast master table.

This patch adds configuration file support for a table of unicast
masters. Each table lives in ...

e22dc6b113ad7afd959b6bdd69fde59b571b5e32 authored over 6 years ago
msg: Support unicast negotiation message formats.

Signed-off-by: Richard Cochran <[email protected]>

1d450540c75fda679a2948c0a8bc14d572326db8 authored over 6 years ago
port: Add a method for constructing signaling messages.

Signed-off-by: Richard Cochran <[email protected]>

1ccc55ef079014b5b81d90a33657d12e7041e358 authored over 6 years ago
port: Allow transmission of unicast announce messages.

This will be needed by unicast mode.

Signed-off-by: Richard Cochran <[email protected]>

05dce31d81b7d230a11abf28256719e1c1ab6d2b authored over 6 years ago
util: Add a method to compare binary addresses.

Signed-off-by: Richard Cochran <[email protected]>

bc18131d277d9b4b32eed8a49bedba0bb39be3b2 authored over 6 years ago
util: Make a useful helper function more public.

The function, str2addr(), will be needed by the upcoming unicast
client code.

Signed-off-by: Ri...

40480f3b28b4172d261c5c74c220f9c83b4f98df authored over 6 years ago
transport: Fix even more callers to pass a proper enumeration value.

All of the callers of transport_peer() use hard coded magic numbers.
This patch fixes them to us...

ffbafa557ba91a18c320eb5035d471acc78fac09 authored over 6 years ago
phc2sys: document switch/case fallthrough so that gcc can understand it

Signed-off-by: Rafaël Carré <[email protected]>

d52ef498cf999d411fb7261753219aa1463bc7c1 authored over 6 years ago
follow_up_info_append: port argument is unused

Signed-off-by: Rafaël Carré <[email protected]>

ee2a9d4ac998595a5b1093c386789cce7a267904 authored over 6 years ago
transport_txts(): transport argument is unused

Signed-off-by: Rafaël Carré <[email protected]>

bdaff2ecd2c6c7c630f39cfa5c89b74b476a3c3b authored over 6 years ago
config_alloc_longopts(): argument is unused

Signed-off-by: Rafaël Carré <[email protected]>

77995137bf854a03d6a6555a88ea19deee0e37fa authored over 6 years ago
clock_send_notification: msg_len is unused

message length is already included in the msg structure

Signed-off-by: Rafaël Carré <funman@vid...

3c7fa5dd429b9ca82e4d890347f7685cdcaf5cf2 authored over 6 years ago
udp*: multicast join work with specific addresses

Remove unused sockaddr size argument, and pass address using specific struct

Signed-off-by: Raf...

5219b6417faa5248e6093828732ab9fc713b82be authored over 6 years ago
Replace memcmp() with pid_eq() and cid_eq()

Consistenly use the pid_eq() and cid_eq() helper functions. Move the
functions into utils.h (mak...

6bc77ccf4b39e543571d5b7bb45b96dc5d2c99ac authored over 6 years ago
phc2sys: don't over-control a destination clock

If ptp4l is running as a boundary clock, and multiple master ports
share a hardware clock that i...

4c5d180ab343cac25dbc25c0298b04cc48631d3a authored over 6 years ago
port: don't clockcheck timestamps from other domains

ptp4l runs clockcheck on an incoming PTP message before checking its
domain number. If the time ...

dc0f6427bd1d0b58e245c7d8f59c51aa23ae657a authored over 6 years ago
msg: Introduce a helper to test for unicast messages.

With increasing unicast support, the code needs to identify unicast
messages more often. This p...

ccfeb3b092493d1fa874aaf15319722e16082299 authored over 6 years ago
port: Don't take the interval from unicast sync messages.

According to the standard, unicast Sync messages are to be sent with
the interval field set to 1...

28ddb51567f916f813d422a7cf7b3b41c2cff9ab authored over 6 years ago
Move the configuration files to their own directory.

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 ago
port: Correct log message interval field of unicast Sync messages.

According to the standard, this field is special for unicast messages.

Signed-off-by: Richard C...

494643d1fb3bf69a8d67d935ba043ed367590dde authored over 6 years ago
config: Fix value range for tc_spanning_tree option

This fix allows disabling tc_spanning_tree explicitly.

Signed-off-by: Christoph Seifert <christ...

1bf9d1e3924f73379c6c42036ec5e0805e93734d authored over 6 years ago
Fix crash in hybrid E2E mode.

Richard Hill reported an occasional NULL pointer deference in
port_delay_request() when in hybri...

a8b66ce7f24a3e031712b4352dd48780540018ba authored over 6 years ago
phc2sys: fix manpage documentation for -F

Clearly indicate the value is the maximum offset for which clock skewing
will be used at the sta...

cacf272d1cbd897410940f6e09be1d5630bf98f6 authored over 6 years ago
config: Add a configuration option for TC mode.

This patch adds a new configuation option that enables transparent
clock mode. When TC mode is ...

c8107c8d4b81cb7d9d5e0f50200ce334244cbc3e authored over 6 years ago
e2e_tc: Implement an end to end transparent clock.

The E2E TC forwards Announce, Delay_Req, Delay_Resp, Management,
Signaling, and Sync messages, a...

96716060b1464b2c884617fdb99016268735a9e5 authored over 6 years ago
config: Add a configuration option for preventing loops in TC mode.

According to 1588, PTP message loops are simply someone else's problem
with respect to transpare...

e6af4608c4d672490398a8cbcb17b8ee5033c191 authored over 6 years ago
Add an example configuration for an end to end transparent clock.

Signed-off-by: Richard Cochran <[email protected]>

bdbbe24ef960b6aabf9f2c6e0199b35f47f0d954 authored over 6 years ago
p2p_tc: Implement a peer to peer transparent clock.

The P2P TC forwards Announce, Management, Signaling, and Sync
messages, consumes P2P Delay messa...

6a928ae8675521b41d642e983c1a883bce6ecefc authored over 6 years ago
tc: Add the transparent clock implementation.

This patch adds code that sends an event messages received on one port out
all the other ports a...

a13212fcbbb09141b7ca01a7f0ec0aa82755e945 authored over 6 years ago
Add an example configuration for a peer to peer transparent clock.

Signed-off-by: Richard Cochran <[email protected]>

fd80721493093b1798a172d71fdf2f43b31a38b6 authored over 6 years ago
port: Share more helper functions.

The transparent clock code will want to set qualification timeouts and
perform end to end delay ...

4cfbb2627fba8b64ee4a1a60b3d55a974d22c197 authored over 6 years ago
clock: Add a method to determine whether a clock is free running.

This will be needed by the end-to-end transparent clock code.

Signed-off-by: Richard Cochran <r...

8f2b1db4fd3c47fd616eb16ccbb2bd884cafdc74 authored over 6 years ago
Condense the 802.1AS example configuration.

As we add more and more options, it is getting to be a chore to add
each new option to multiple ...

8feaa8ada8a479c8a0c2900f0b34bd5505a32b5b authored over 6 years ago
telecom: Introduce the masterOnly option.

When masterOnly is true, the port always returns NULL when computing
its best foreign master. A...

4d69d48f96da2d76156e50420b07843a2afbd845 authored almost 7 years ago
telecom: Add a configuration option to use the alternate BMCA.

Signed-off-by: Richard Cochran <[email protected]>

0c30ab463f13073bc48fc9a3393c2e1bac1ef116 authored almost 7 years ago
telecom: Add a configuration option for G.8275.portDS.localPriority.

Signed-off-by: Richard Cochran <[email protected]>

4545fd1150964b15adb93adcacb64f3fc18991aa authored almost 7 years ago
telecom: Add a configuration option for G.8275.defaultDS.localPriority.

Signed-off-by: Richard Cochran <[email protected]>

c7fb52572179b4009cd7dcb7e0a841af3808a7d2 authored almost 7 years ago
telecom: Introduce the local priority attribute into the data set.

The Telecom Profiles G.8275.1 and G.8275.2 have invented a new
per-port and per-clock attribute,...

a8d0eb92c67ca87b94b2ea9c693de7dfb469af16 authored almost 7 years ago
telecom: Add the data set comparison algorithm from the Telecom Profiles.

The first half of the telecom algorithm from G.8275.1 and G.8275.2
differs from the one in 1588,...

f848a30a3e36dbbc0b32901f6819194ac7887842 authored almost 7 years ago
Refactor the data set comparison function variable.

There is no need to keep two copies of the data set comparison
function. This patch adds a meth...

6f96ebb7b81b8595fc4233bceb786124a717e9f4 authored almost 7 years ago
nsm: Allow commands on command line.

Add a batch mode, where the commands are taken from the command line
instead of the standard inp...

b2a36350bb77ed93478aa37148ab27302665d42d authored almost 7 years ago
phc2sys: fix PPS mode with no source clock.

When using a PPS source with no source clock specified with the -s
option, avoid referencing a N...

a335ac556a8dbcd5f3de1d301afef9859ba26132 authored almost 7 years ago
phc2sys: fix race between signals and port initialization.

Check if a signal was received when waiting for ptp4l in the automatic
mode to not get stuck in ...

966eff0161432ece087067e982b67eb6c3ff4442 authored almost 7 years ago
timemaster: restart terminated processes.

If a ptp4l or phc2sys process is terminated (e.g. due to a crash) and
timemaster was running for...

e79e5040a0e7efd622ecdd572bee40c90e59c3bd authored almost 7 years ago
timemaster: add support for bonded interfaces.

Use the rtnl_get_ts_device() function to get the name of the slave
interface which will be times...

e5ba2dae5f102a66e152b96f9cc7b06aff4b90b5 authored almost 7 years ago
rtnl: remove dependency on config.h.

Change the rtnl_get_ts_label() function to accept the name of the master
interface and the buffe...

742f8788211d2a861a0214e76449390b89ba55c2 authored almost 7 years ago
nsm, pmc: Check for missing HW time stamps.

As of 510777deca1d message layer no longer returns -ETIME. Callers of
msg_post_recv() are expec...

7a76c36b34b4b05b20ac98f21a63954e2af4a026 authored almost 7 years ago
msg: Detect missing HW time stamps on duplicated messages.

As of 510777deca1d message layer no longer returns -ETIME. Callers of
msg_post_recv() are expec...

29cd0883475ef2949076c741fb083a7cc5b0fa2b authored almost 7 years ago
pmc: Fix LOG_SYNC_INTERVAL

In pmc, there is a little bug (only text, not functional):
When pmc is called with the managemen...

0455489158f63c823e7e458fdba3bea3cef226b4 authored almost 7 years ago
phc2sys.8: Doc long opts / cfgfile handling

[RC: Added -f flag help and removed extraneous text.]

Signed-off-by: Peter Schneider <peter@psc...

89969b4b0f3e473eec771affe16bb0957fa6857c authored almost 7 years ago
phc2sys.c: Replace variable 'verbose'

Replaced usage of variable 'verbose' with struct config item 'verbose'.
Original variable remove...

f7274b1e8411f814e8ee46ca4b2d54260cae5884 authored almost 7 years ago
phc2sys.c: Replace variable 'message_tag'

Replaced usage of variable 'message_tag' with struct config item
'message_tag'. Original variabl...

97ff23cc070822f9b2bfa202a342419fc821cfdd authored almost 7 years ago
phc2sys.c: Sync variable 'node.clock_servo with cfg item

Use struct config item 'clock_servo' for parameter handling. Copy this to
node.servo_type afterw...

41fa8e9d32342ed27e2ae6040d76f3014efecb22 authored almost 7 years ago
phc2sys.c: Implement handling of Long options

Signed-off-by: Peter Schneider <[email protected]>

c93045b37b0732fabb24f8aae2a0fdd3f29a023a authored almost 7 years ago
phc2sys.c: Sync variable 'node.sanity_freq_limit with cfg item

Copy 'node.sanity_freq_limit' to struct config item 'sanity_freq_limit'.
Check for 'servo_type' ...

26308c219a290f17c765000889ebf0b504e42719 authored almost 7 years ago
phc2sys.c: Sync variable 'node.kernel_leap with cfg item

Use struct config item 'kernel_leap' for parameter handling. Copy this to
node.kernel_leap after...

c22864a807dbdaa8a45b3cba49ac53ef3c4acd43 authored almost 7 years ago
phc2sys.c: Implement using transportSpecific

Signed-off-by: Peter Schneider <[email protected]>

79d290e22258979a9043a92d8d4cfe1c55b40734 authored almost 7 years ago
phc2sys.c: Replace usage of variable 'use_syslog'

Replaced usage of variable 'use_syslog' with struct config item
'use_syslog'. Original variable ...

cfbc8bdc180fb79646229c323aabc30c08041822 authored almost 7 years ago
phc2sys.c: Implement configuration file handling

Signed-off-by: Peter Schneider <[email protected]>

c70f9b3e07891dd8b307bb14e99d1d3e202d073e authored almost 7 years ago
phc2sys.c: Replace variable 'domain_number

Replaced usage of variable 'domain_number' with struct config item
'domainNumber'. Original vari...

e8d01515cf297993ba8f7243198962e78ea231c1 authored almost 7 years ago
phc2sys.c: Replace variable 'print_level'

Replaced usage of variable 'print_level' with struct config item
'logging_level'. Original varia...

7986e10302257b590a877c2bf1b8d1fc8520e56e authored almost 7 years ago
clock: Calculate frequency offset even without any delay estimation.

If the "free_running" option is set, the "no adjust" calculates and
prints an estimation of the ...

eb8507a45a02de6bcbdf66f1f868a3b5dcd57207 authored almost 7 years ago
clock: Maintain the master/local rate ratio when free running.

When using long chains of transparent clocks, the recommended practice is
to measure the rate ra...

f26ca92f1c1b337db43dd5bd525d9db1931ace3b authored almost 7 years ago
msg: Introduce a method to copy a message.

The transparent clock will want to have two copies of certain messages,
one for forwarding and o...

51b540875fab720ec8349582cb9f78fab624122a authored almost 7 years ago
transport: Fix callers to pass a proper enumeration value.

The majority of the callers of transport_send() use hard coded magic
numbers. This patch fixes ...

a1c5e3f2ed96b49a3a8eb87a32f2fa97c2c37dea authored almost 7 years ago
transport: Introduce transmit time stamp deferral.

Up until now, the code has always fetched the time stamp immediately
after transmitting a messag...

e160bad7215a7509306723551b6de3b70eac5942 authored almost 7 years ago
msg: Refactor the finding of the TLV suffix on receive.

Now that we have a helper routine to find the suffix, use that instead of
open coding the same l...

1f65c3745c1c593a596ada0f98977e3860677056 authored almost 7 years ago
transport: Introduce method for fetching a deferred transmit time stamp.

When a messages is sent with the DEFER_EVENT flag, the lower transport
code does not fetch the t...

5f9163af4bf6b54ea08f7fef112e9fcf4a669e56 authored almost 7 years ago
transport: Use the proper enumerated event code.

Originally the 'event' parameter to transport_send() was a single
Boolean flag. Over time, we g...

4247eeb1043ff61c59702716e8accdc37e99fa3c authored almost 7 years ago
clock: Fix coding style

Signed-off-by: Anders Selhammer <[email protected]>

da7bc1db1ecc865361efda9f9fb888db80cda08e authored almost 7 years ago
port: Fix coding style

Signed-off-by: Anders Selhammer <[email protected]>

b36142cb5176bb81ea05e7cdbc748410afa13447 authored almost 7 years ago
sk: Silence gcc warning about unused variable.

When compiling with "-O1 -D_FORTIFY_SOURCE=1", gcc throws a false positive
warning. The code is...

98e6c8de58e960b05eeb1601710ab29b9d5019ef authored almost 7 years ago
port: fix buffer overflow in net_sync_resp_append()

The PortAddress structure has no space for the actual address and should
be used only as a point...

73c4d9a3c7c847e6c06db21057674fb1c18a1b35 authored almost 7 years ago
Correct the make install target.

The make install target tries to install a man page that does not
exist. This patch fixes the m...

74cdaafd5b9b413904bbb993a58948d28088afb6 authored almost 7 years ago
clock: Make the data set comparison algorithm into a function variable.

This will allow adding alternative algorithms as defined in PTP profiles.

Signed-off-by: Richar...

b05991dbb85f2f60051f06581f9280b90cf18420 authored almost 7 years ago
port: Make the data set comparison algorithm into a function variable.

This will allow adding alternative algorithms as defined in PTP profiles.

Signed-off-by: Richar...

ec33010f56c675256511e1e63d45bf0773581fca authored almost 7 years ago
bmc: Allow alternative data set comparison algorithms.

Instead of using a hard coded algorithm, let the caller provide the
function that performs the c...

1b3ef0d1951d5df3742f6923f075b6da20f4a33c authored almost 7 years ago
bmc: Make the second part of the data set comparison algorithm public.

This code will be shared by future alternative algorithms.

Signed-off-by: Richard Cochran <rich...

dc1b7c66c6a75b2e93086801f272ef00509e8d53 authored almost 7 years ago
port: share init code, peer delay code, and helpers

This patch makes a number of subroutines into global functions in order
to share code with the T...

46acbcee42ad65c97f02dc0388232cfcb0a3eba3 authored almost 7 years ago
port: export a private interface.

This patch places the internal port data structure into a common header
for use by the original ...

d87bb60712fc28ebe57fdd6be8dd25bbdafc561a authored almost 7 years ago
port: make the dispatch and event methods variable based on clock type.

This paves the way to allow different implementations for the upcoming
Transparent Clock code.

...

c17040582219e7be88abdfece67bf36c89f3c4e2 authored almost 7 years ago
port: Provide a common method for updating the port state.

When computing the next port state based on a FSM event, much of the logic
will stay the same fo...

866da1044cd11c98faad79efd28dee056a84fefe authored almost 7 years ago
msg: Append multiple TLVs correctly.

The logic that adds TLVs to the end of a message mixes up the 'L'
length in "TLV" with the total...

d14f11fd329a7da94c0d0190a169f743eb91031b authored almost 7 years ago
Version 1.9

Signed-off-by: Richard Cochran <[email protected]>

d8a9591dac6da87190f3e223d1ef87e433401182 authored almost 7 years ago
phc2sys: Clean up before exiting.

Valgrind complains about memory leaks, none of which are serious. This
patch frees the allocati...

4e35931bc81a5e78f88e7561ba287f384e2648d3 authored almost 7 years ago
Make the LIST_FOREACH_SAFE publicly visible.

We will want to use this macro in more than one source file. This patch
moves the macro into th...

992e29205528414cdd8fd7e8415a3493676f022b authored almost 7 years ago
pmc: Initialize variable on the stack.

Valgrind is complaining that the pmc program is using uninitialized
data. Actually the data are...

d46540610626832b7762f1dbda6fe6d73cae7321 authored almost 7 years ago
Introduce peer to peer one step.

The 1588 standard defines one step operation for both Sync and
PDelay_Resp messages. Up until n...

4842d2c7ec41d52414eb5cc4d29cc3630991959b authored almost 7 years ago
msg: Move the check for missing HW time stamps into caller.

On the transmit path, the port-level code calls msg_sots_missing()
directly, but on receive this...

510777deca1d0268f8825a3a0fa8d5cbfc51af22 authored almost 7 years ago
Expand and rationalize time stamping options.

Up until now, one step operation was controlled by a combination of
options, namely time_stampin...

8857ad983400d8fad62ddd95d2b10e7616df0668 authored almost 7 years ago
Correct macro to avoid undefined C language behavior.

I stumbled across a kernel commit that fixes the macro that convert
between file descriptors and...

a4129823006e750b98060919e09bce1f69d88f4e authored almost 7 years ago
differ message printed when local clock is best master

Make the log output a bit more clear by changing how we inform the user
when the local clock is ...

862724fda59299c1cd75624221a676c3646cc7c3 authored almost 7 years ago
pmc: Documentation for long opts / cfg file

[ RC - Correct the punctuation and abbreviation. ]

Signed-off-by: Peter Schneider <[email protected]...

c4e58792339813925e7554b3ad08e4ee9f1aa6b8 authored almost 7 years ago
pmc: add long options and configuration file

[ RC: - Add new flag into usage message.
- Fix up coding style of the automatic variables....

c96dea72f150dbb9355a3e25384fb5a47230e757 authored almost 7 years ago
pmc_common: Preset uninitialized 'iface.ts_label' with 'iface.name'

pmc_create() calls transport_create(), which sets the open function
for the interface 'iface' to...

ea9dda30e22c18460bdfce350bb4e0bae79c235d authored almost 7 years ago
port: Added TAILQ for sent delay_req

In a ptp unaware network (like the telecom profile for frequency sync
G.8265.1), both the RTD an...

f9db6855fdbedb4805775086d424baead6738453 authored almost 7 years ago
port: Fix coding style

We always but braces around 'if' blocks.

Signed-off-by: Anders Selhammer <anders.selhammer@est....

9320f768e22b1aac72f4fa42d9492fde57af1379 authored almost 7 years ago
port: Remove unnecessary ts_to_Timestamp() wrapper

The function ts_to_Timestamp() is now just a wrapper around
tmv_to_Timestamp(). Simplify code b...

73c59e83d9c5f7cbaf982257741f6684734a0e9c authored almost 7 years ago
port: Remove unnecessary conversions from tmv_t to int64_t

Signed-off-by: Michael Brown <[email protected]>

1e19ce204a1f1ab2e2ae704c21a9a4c7b14f217c authored almost 7 years ago