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

Close client UDS transport before exit.

In pmc and phc2sys handle terminating signals and close the UDS
transport before exit to remove ...

30841a68495b5e9ba11ff4b056c4a79b0b73d14a authored over 10 years ago
Append PID to client UDS paths.

This allows running multiple phc2sys and pmc instances at the same time.

Signed-off-by: Mirosla...

1773d21f26eb1aa2da0645af116d6ce27591a9cc authored over 10 years ago
Move signal handling to util.c.

This will be useful in phc2sys and pmc.

Signed-off-by: Miroslav Lichvar <[email protected]>

ca637b2067ae78c9830c38bb5e9a659255b1a4a2 authored over 10 years ago
Remove socket when closing UDS transport.

[RC: added cast to sockaddr to avoid compiler warning. ]

Signed-off-by: Miroslav Lichvar <mlich...

2423357754ae7d64d844fc064c72b8d27adf40c4 authored over 10 years ago
phc2sys: Add option to set path to ptp4l UDS.

Signed-off-by: Miroslav Lichvar <[email protected]>

28865f91df96e83b28bb40565f12e62bd86e451f authored over 10 years ago
linuxptp: add phc_ctl program to help debug PHC devices

This is an updated version of a script I wrote a couple years ago for
debugging the PHC when wri...

bdb6a35883b071b02796d9c3fcf496b8c7f3a04f authored over 10 years ago
gitignore: add .version as this is generated during a make

Signed-off-by: Jacob Keller <[email protected]>

3e858ba17bf24589c662798e554f4051e6c25698 authored over 10 years ago
Prefix TLV IDs.

To avoid conflicts in generic names add TLV_ prefix to all TLV IDs
defined in tlv.h.

Signed-off...

70dd6823493535bc0693f45b470f8c65a8028817 authored over 10 years ago
ntpshm: Pass upcoming leap second.

Signed-off-by: Miroslav Lichvar <[email protected]>

bc84b880535a29e9b7d07c782445ac84aa8973b2 authored over 10 years ago
Disable clockcheck and kernel leap with ntpshm servo.

Always disable the clock sanity check when the ntpshm servo is used,
because it doesn't know whe...

93b7807aadb33874c5194b6d03f419c9639c39a2 authored over 10 years ago
linreg: Handle leap second gracefully.

When leap second is inserted/deleted to the reference time, adjust the
reference point as if the...

97f72ceecc264ed6a8f66ec5f7d64f289f8b306f authored over 10 years ago
Add leap function to servo.

Introduce a new function to inform the servo about upcoming leap second.
This is used when the k...

2aa6b10c3bbe7bffac0d57109bf8f4857c5a141e authored over 10 years ago
phc2sys: Use CLOCK_MONOTONIC to time pmc updates.

After moving the leap second check away from update_pmc(), the time
stamp is used only to contro...

7d740f17e572fb2e2675ab71a69608d862a24ec9 authored over 10 years ago
Set TAI offset of system clock.

When synchronizing the system clock and the PTP UTC offset is valid and
traceable, set the TAI o...

fefd5b4b05039ea0a0770291b12b0eb931079970 authored over 10 years ago
phc2sys: track sync offset and leap second status in each clock.

This simplifies passing of pending leap seconds to the clocks and it
will also allow to apply le...

a3c32b8c6561a6579f4ba5cb854798195c8ffd27 authored over 10 years ago
Add a macro for ADJ_TAI used when missing from the tool chain headers.

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

07edab48dcfa6e28baaf54011ee19a18780d6916 authored over 10 years ago
Add new servo for NTP SHM reference clock.

This is a simple servo that provides the NTP SHM reference clock. It
doesn't make any clock adju...

9710fb1a22e36c1562d545e1f28c15e0dd15bc52 authored over 10 years ago
phc2sys: reset sync offset if non PTP timescale

When grandmaster does not use PTP timescale but the previous one did, we
need to reset sync offs...

f28a3b36649a31ea282a99f93129a187c5197a06 authored over 10 years ago
phc2sys: event subscription

Add support for subscribing to events (run_pmc_subscribe) and receiving and
handling of received...

175ca678e7018bc524f379e3b64fc29829209861 authored over 10 years ago
phc2sys: autoconfigure realtime clock on demand only

By default, do not synchronize CLOCK_REALTIME. To do it, -r option is
needed. That will only con...

3dd4d51c8e100c8d9f792c3d8cf287d771c42fe7 authored over 10 years ago
phc2sys: man page update for -a and -r options

Signed-off-by: Jiri Benc <[email protected]>

1a1e02aa978f1e55e0e8694b1131276a7ba6d541 authored over 10 years ago
phc2sys: check clockIdentity

Make sure that we handle only one PTP clock (node). This is for an extra
safety.

Signed-off-by:...

66c9f9baaf67ab6bb42fc9ea96c789b3facdf7cf authored over 10 years ago
phc2sys: autoconfiguration

Add automatic configuration option (-a).

Signed-off-by: Jiri Benc <[email protected]>

46a0b281b9157392609709f989cc126191e49bef authored over 10 years ago
phc2sys: propagate received errors

Recognize errors returned in MANAGEMENT_ERROR_STATUS TLV and return
a distinct value from run_pm...

00a663ca687b96990dcff95c952da58647f68aa7 authored over 10 years ago
pmc_common: easy way to set port and broadcast target

Implement pmc_target_port to set a port number, leaving clock identity
unchanged, and pmc_target...

48f6a31cc3efde528a941116e1ce0591622cf42f authored over 10 years ago
phc2sys: rearrange declarations

This just moves code around to have related functions together and forward
declaration at the be...

b826ce530b8a5c3538b804dffff3d006cda7b79a authored over 10 years ago
phc2sys: store information about clocks being UTC or TAI

For now, only CLOCK_REALTIME can be UTC. This may stay this way forever but
now we have a clean ...

78aaef8a1abc40ac94182e6c37616d41670ebd19 authored over 10 years ago
phc2sys: track ports

Add tracking of which ports have been added and to which clock they belong.

Signed-off-by: Jiri...

506271acac252290df5a3365c85caa02db1321b3 authored over 10 years ago
phc2sys: open devices in clock_add

Do not call clock_open to open a clock device but let clock_add do that and
return the newly cre...

90bbdbcfae11d002c40e1ec8b47a35f95f44baee authored over 10 years ago
phc2sys: split clock and node

Split members that apply to all synchronized clocks and members that apply
to an individual cloc...

be4251a552c7f22458308a1c9b0740c503f503db authored over 10 years ago
phc2sys: split update_sync_offset

Split the generic (global) part of update_sync_offset and the part that
affects individual clock...

423eb5453044296a91913ff7ed0a19151ee6d342 authored over 10 years ago
phc2sys: generalize run_pmc

Make run_pmc usable for any kind of management message. Create wrappers for
waiting for ptp4l an...

a1bee8fbb797f184c9c23c5575e7e7f158632633 authored over 10 years ago
Remove unused field from struct config.

The sanity_freq_limit field was erroneously added to the config struct
in ed379b40, the right on...

5723da950f58650a3d25e370262e67f3692415b8 authored over 10 years ago
Bump the date on the hwstamp_ctl man page.

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

abd433838448ccdd8e0b10664ccb3eebcff1dab6 authored over 10 years ago
hwtstamp_ctl: use SIOCGHWTSTAMP ioctl before destructively setting policy

This patch modifies the hwtstamp_ctl program, so that it will (attempt
to) use the SIOCGHWTSTAMP...

2462f675c33b1095b783941bb339f996720a706f authored over 10 years ago
missing: add SIOCGHWTSTAMP to missing.h

In order to allow hwtstamp_ctl to use the non-destructive SIOCGHWTSTAMP
ioctl, we need to add it...

5e8a34f0b43604b413f3eb75f45e85100cbc6cbb authored over 10 years ago
Fix a trivial spelling mistake in a comment.

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

8a92b1292c8d60fd114207c7ebd9564d4f868752 authored over 10 years ago
Fix sk_interface_addr().

This was broken in commit e804e6, ifa_addr is a pointer to sockaddr,
it shouldn't be referenced ...

32ef7c07933fcfbb203d95e0b32d638f113c4f58 authored over 10 years ago
Custom management TLV PORT_PROPERTIES_NP

Will be used by phc2sys to find out interfaces corresponding to ports.

Signed-off-by: Jiri Benc...

424bbde8fcca09a07375736c96041dd04467cbf4 authored over 10 years ago
port: event notification

Split management message creation to more fine-grained functions to allow
notification messages ...

122314926acbc175d913e8d9156eb7a4e3148a42 authored over 10 years ago
Subscription time limit

Add expiration time to subscriptions; they need to be renewed before they
expiry. This way, the ...

0e8efe418c02e607c36989c3142c5b3051e28be9 authored over 10 years ago
Event notification: port state

Notify subscribers about port state changes.

Signed-off-by: Jiri Benc <[email protected]>

c8c6f7288f7f3bdfe6ff56cc05d05d95e36f8796 authored over 10 years ago
clock: event notification

Split management message creation to more fine-grained functions to allow
notification messages ...

648197153e4e25c95476192f057dcc7deefafa26 authored over 10 years ago
Event subscribing

This puts groundwork for event subscription and notification. The individual
events are added by...

5104e3e56b59f7e64ee72e7bc799811e647648ce authored over 10 years ago
Remove unneeded parameter in port_forward

This parameter was made obsolete by the common address refactoring.

Signed-off-by: Jiri Benc <j...

d6e4173e1955a980a89cb81d2914d3d1f6536e6a authored over 10 years ago
uds: don't output "Connection refused"

When phc2sys is started before ptp4l or it is interrupted before ptp4l has
a chance to reply to ...

14742ef566e8aa22a3243652418d1faa1036d369 authored over 10 years ago
Implement port_forward_to

Signed-off-by: Jiri Benc <[email protected]>

d0a67e8b1a7ba3a606d2ba8600849dc0737dda2d authored over 10 years ago
Respond with an error to management messages to non-existing ports

Signed-off-by: Jiri Benc <[email protected]>

ba577d7123d326facbc7ce5569a1f5cb10f20b60 authored over 10 years ago
Common type holding an address

This modifies all transports to use a new common address type, struct
address. This address is s...

e804e6f9a02c3531e7a000de016d3b7a456c0ac6 authored almost 11 years ago
Implement transport_sendto

Also, document transport_send, transport_peer and transport_sendto usage.

Signed-off-by: Jiri B...

4df924b253dbe3dec734fba4a1d7b88f35c03df4 authored almost 11 years ago
Let transport_recv/send/peer use ptp_message

The callers of those functions are all using ptp_message. As we're going to
return more informat...

bbe634d790cff73d28046f1946cdd9a1481686f8 authored almost 11 years ago
raw: separate src and dst addresses

In order to be able to convert to a generic address struct, separate source
and destination addr...

3d221542994d711a3166302221064147ad23d0e3 authored almost 11 years ago
raw: replace hard coded constants by MAC_LEN

Signed-off-by: Jiri Benc <[email protected]>

8c02ae53f28e11c13c3d78b64e8546621900209c authored almost 11 years ago
raw: fix reading of uninitialized memory on recv

When less bytes than the header size is read, do not indicate to the caller
that the read was su...

8bbebdd381517405bfaede680907d95753bafa87 authored almost 11 years ago
Move check of TLV length for management COMMAND messages

Currently, it is assumed that the management TLV data of management COMMAND
messages is always e...

4ed4c0ef5ac535a4ee6e03a900bd1031070b7cb9 authored almost 11 years ago
Move common code into port_prepare_and_send

The task of preparing the message for transmission and sending it appears
at many places. Unify ...

ea7a7882e5386c8f942b397598cb634111b658d3 authored almost 11 years ago
Print warning message on deprecated ptp4l options.

Signed-off-by: Miroslav Lichvar <[email protected]>

683218aee61906cdb40cbaa75e803a3db2b36fa3 authored almost 11 years ago
Increase default first step threshold to 20 us.

Most PHC drivers implement stepping (ADJ_SETOFFSET) by reading the
clock, adjusting the value by...

2b099cfa0615eeb8c2c946052c960a73ea53cd14 authored almost 11 years ago
Add an adaptive servo based on linear regression.

This servo uses linear regression to estimate current time and
frequency error. The number of po...

a5890cbe98e1f14d1decb20b94a84912012c4c89 authored almost 11 years ago
Include clock rate ratio in delay calculation.

With the new linreg servo the frequency offset and time offset are
controlled separately. The ra...

61de819d563157e05d095d52903b8577811f0d79 authored almost 11 years ago
Move PI step threshold and max frequency settings to common servo code.

These settings will be useful for all implemented servos, so move them
to the common servo code ...

31feb001948f880cfadc446dd2c6c09b7c09499e authored almost 11 years ago
Don't always step clock on PI servo reset.

The initial check if the clock should be stepped always passed after the
servo was reset (e.g. f...

72a92126009f81d64d58500a8784786e3c525076 authored almost 11 years ago
Restrict SET actions to UDS port.

Setting GRANDMASTER_SETTINGS_NP is allowed only from UDS, but
PORT_DATA_SET can be set from any ...

91e240679bcd447bbf5ac5cec1e40c4e2421e97b authored almost 11 years ago
Fix conversion of cumulativeScaledRateOffset in TIME_STATUS_NP.

This fixes reporting of negative offsets.

Signed-off-by: Miroslav Lichvar <[email protected]>

85cebe02657478b8c91d4b94a79e1d7f16d9fda3 authored almost 11 years ago
Initialize clock rate ratio.

This fixes cumulativeScaledRateOffset reported in TIME_STATUS_NP before
the rate ratio is update...

7d773a9b932c33581f07ee52489c3e060f57be63 authored almost 11 years ago
pmc: print cumulativeScaledRateOffset as offset.

Signed-off-by: Miroslav Lichvar <[email protected]>

c0fd772974a0bd9afa2a5570eeca5158b9ddc15c authored almost 11 years ago
config: Add min_neighbor_prop_delay configuration variable

When peer delay is < min_neighbor_prop_delay the port is flagged
as non 802.1AS capable. min_nei...

b2bde6f5ec13e6f9c8fbd966807ad30b1d17ed87 authored almost 11 years ago
port: adjust peer delay calculation using neighborRateRatio

Previouly the peer delay was not taking into account the
frequency offset between the local cloc...

bd001fdec784fc4aa8f36a773f4e75e634cbc6ba authored almost 11 years ago
Version 1.4

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

54c9effeba6bf7aaf9948a7cc2643f269f63100c authored almost 11 years ago
Fix new -Wformat warnings.

Signed-off-by: Miroslav Lichvar <[email protected]>

9190959693cf94ab030d872c8e2548a37b137447 authored almost 11 years ago
Set printf format attribute for print().

This allows gcc to check format strings used in pr_* calls.

Signed-off-by: Miroslav Lichvar <ml...

1fa57ac411cecc2fd877c207913c305aaf333ede authored almost 11 years ago
Clarify units used in clock stepping constants.

Signed-off-by: Miroslav Lichvar <[email protected]>

661639420ccd459216cb7154101492eedeeb8142 authored almost 11 years ago
Make functions and structs dealing with string literals const correct.

This allows the compiler to check if someone writes into string
literals.

Signed-off-by: Stepha...

110849d42247943b54672d1b5301ee2d2d1d6164 authored almost 11 years ago
Make udp_physical_addr() and udp_protocol_addr() static.

They aren't used outside udp.c

Signed-off-by: Stephan Gatzka <[email protected]>

886112e202000a0683f94eb3e496c031e7f660bf authored almost 11 years ago
pmc: support retrieving neighborPropDelayThresh and asCapable using management interface

Define new PORT_DATA_SET_NP TLV
neighborPropDelayThresh can also be set using the same TLV

Sign...

29063a822767617d87d3e7f9b3ac16fb30f160cf authored almost 11 years ago
uds: disable the accidentally enabled announce timer.

Commit e425da2f inadvertently enabled the announce timer on the UDS port,
causing it to continua...

f36af8e0c350328bb3257bf2082c22b3d8fde2ec authored about 11 years ago
uds: take the interface data off the stack.

The 'struct interface' for the UDS port is allocated on the stack, and
when this gets passed to ...

21889c5e7e57fde81c5cf290c7b348bdabd2bf45 authored about 11 years ago
phc2sys: Mention that PPS output needs to be enabled without -s.

Signed-off-by: Miroslav Lichvar <[email protected]>

5dd5af5565880553b5a6736b517fe2a6759ddcd1 authored about 11 years ago
Change level of negative path delay messages to debug.

Negative path delay measurements are expected with E2E, the user doesn't
need to know when that ...

f7d745f8fa2a1a01ca926854eb655fa1cc7a9c9f authored about 11 years ago
Clarify c1, c2, c3 in negative path delay log message.

Signed-off-by: Miroslav Lichvar <[email protected]>

647bce1c0c16563490bc53d852c9ac9b94f50233 authored about 11 years ago
Print current frequency when PI servo is in unlocked state.

Store the current frequency and return it when the servo is in unlocked
state instead of zero. T...

cee9397b664b3eaed528283ac4555c600fc2b93e authored about 11 years ago
Fix drift calculation in PI servo with large values.

When the drift value is adjusted by the newly measured frequency offset,
multiply the frequencie...

2ca067dcace97e1b5c28f1da3755b9d33f02bf0b authored about 11 years ago
Adjust tick length with system clock.

This increases the maximum frequency adjustment of the system clock
from 500 ppm to 10%.

Signed...

e63a6ea89b8fac5ee6ef12a18b6fdbd81ed76dd6 authored about 11 years ago
Simplify the text of the driver support matrix in the readme file.

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

eb9b0bd2757b0fb8a57a122888ca82d635eb6ccf authored about 11 years ago
Fix filter allocation failure on the UDS port.

Although it does not need to, the UDS port tries to allocate a filter,
just as any normal port w...

c00889f9eb8e1658d45d7cf959c20b47086d7933 authored about 11 years ago
clock: add missing call to clockcheck_destroy.

This patch lets the clock release allocated memory when shutting down. The
main benefit is just ...

3aedebe74bd3d5c74139e15d184c3c58285b7ee8 authored about 11 years ago
Merge Miroslav's random PTP timeout branch.

Conflicts:
makefile

e2586af94a3acf7974ea25641d7459325ec3cfa8 authored about 11 years ago
Add a configuration file option for the 802.1AS gmCapable flag.

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

101e9dcc0eb49b42e0bfc32de2d1499582b7b26e authored about 11 years ago
Inhibit sync messages from unwilling 802.1AS ports.

According to 802.1AS, ports are always expected to transmit announce
messages, even if they neve...

d72e795727d40353feb31933bd8cad73138d8026 authored about 11 years ago
Introduce the gmCapable flag for use with 802.1AS clocks.

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

bdbda10c73fe3c315f785325ce0739cb5ef6b308 authored about 11 years ago
Reset pdr_missing early in port_nrate_calculate(), implement ratio_valid flag

[ RC: the point is that a port may not be considered capable until
enough messages to compute ...

7f7012eab5c776b9504e0279321bd10a9cf1aee4 authored about 11 years ago
Set sync timeout only on port_synchronize()

Sync rx timeout should be set only after receiving the first sync, see
section 10.2.7, figure 10...

a0171b035efdbaa82521afbcdbdb75e50525476f authored about 11 years ago
Add median filter.

Median filter has an advantage over moving average that it is much less
sensitive to outliers.

...

ed9e0fa975ce0e38d3240d05979bc4104a0b0cdf authored about 11 years ago
Add options to configure delay filter.

Add new options delay_filter and delay_filter_length to select the
filter and its length. They s...

85a1bcfa8e20222c4939afc42ed78b13eb21a107 authored about 11 years ago
Add modular filter interface.

Similarly to the servo interface, allow multiple filters to be
used for delay filtering. Convert...

2c9718f3c22f078b9b69831c0ec1da4550e0d24a authored about 11 years ago
sk: update error message for Tx timestamp polling

This patch cleans up the error message for the Tx timestamp polling, and adds a
line which indic...

7bd59737d3306d534a6c10093bf9da3c1acb3c59 authored about 11 years ago
Make random() more random between machines.

Include also nanoseconds from the current time in the srandom() call.
This should significantly ...

ab84eade0a946e094f0852430d47625e38a6a3c5 authored over 11 years ago
Drop tmtab module.

Instead of maintaining a table of precalculated values, use the
newly added set_tmo_random() fun...

23d31d090ebb3a077d3dbbb86175818b23e9b0a7 authored over 11 years ago
Add random delay to announce timeout.

According to 9.2.6.11 of the spec the ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
timeout in addition to an...

e425da2f1704d2ec1677af36e900518993d9f98d authored over 11 years ago
Add clock sanity check.

Check the sanity of the synchronized clock by comparing its uncorrected
frequency with the syste...

ed379b402834739d5910d11b6de2f15b564b5dbc authored over 11 years ago