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

Add reset function to servo.

This will be used with clock sanity checking.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat....

cc7be3fc67366900842ea85f4dba179c1015c327 authored over 11 years ago
Merge the configurable UDS server path branch.

25cf96d4ca1cd6d05314713aeda334a4dfb37a9b authored over 11 years ago
Don't calculate delay with old master's sync time stamp.

When a new master is selected, drop the old sync time stamp to prevent
calculating invalid delay...

52c5e0cfc972c3e2b65ca492eecbff6edb8b2aaf authored over 11 years ago
Ignore delay_resp messages from foreign masters.

When a new master appears, it will start to respond to our delay_req
messages. Make sure we proc...

ea4201298ca5bbadf631e6ee868a6988c01f0a8b authored over 11 years ago
pmc: add a command line option to select the server's UDS address.

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

4f6f1e1cbafa3b42cec3a70eda8af4dce0ecec68 authored over 11 years ago
pmc: bring the man page more up to date.

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

289699e3c9eeac98b9961fb0bda2d243214cf577 authored over 11 years ago
Extend the interface name length to allow any UDS address.

This patch increases the maximum length of an interface name to
accommodate a UNIX domain socket...

67b03860425bfb89d9182da6cf6e39af863dd6ae authored over 11 years ago
Introduce a configuration file option for the server's UDS address.

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

9fe2ffd2efbbc35dcb185af6a0f21be9261da0e4 authored over 11 years ago
Convert the hard coded UDS server path into a variable.

This patch changes the macro for the server socket address into a global
variable so that a subs...

e5ddfd491e6a444cfd5404ddfe251b17ce676230 authored over 11 years ago
Make the CFLAGS more robust.

This patch introduces a shell script to figure out the proper definitions
for the HAVE_CLOCK_ADJ...

ba12da671fc3161a8b6a4b769ce4e66947ab0e3c authored over 11 years ago
Don't try to forward messages to faulty UDS port.

When the socket couldn't be opened (e.g. in clknetsim), the file
descriptor is invalid and shoul...

45493756f8f5054893d787f4b8498c2924c922f8 authored over 11 years ago
Reset delay timer when switching to P2P delay mechanism.

When ptp4l was configured to use the auto delay mechanism and the first
pdelay request was not r...

b366b79306f0d5d8c7da0ae10acdca2b01cb54fe authored over 11 years ago
Merge the gPTP sync timeout branch.

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

bf659ae09d43b64abad62e2196fc587f5adaad9a authored over 11 years ago
Add missing semicolon to enumeration.

This patch adds a semicolon forgotten in commit
5bf265e "missing: add onestep sync to missing.h"...

ad3793aaf7957d13d70767493e04452bfd233d7f authored over 11 years ago
phc2sys: Fix lower bound value of update_rate

Following command produces unexpected update rate.
# phc2sys -s eth0 -q -m -O0 -R1.084202172485...

b943ea2fba973059159a24743bd777db8637ef2d authored over 11 years ago
missing: add onestep sync to missing.h

this patch uses grep to test whether the net_tstamp.h header has
HWTSTAMP_TX_ONESTEP_SYNC flag d...

5bf265e8607ead166955a15d8f8a7a9b496828db authored over 11 years ago
Add a configuration file option for the extra sync-fup check.

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

b7ebfab0cc2ccdf515db67e2feca9073c0b2ec19 authored over 11 years ago
Add an optional extra check on sync and follow up message ordering.

Because of packet reordering that can occur in the network, in the
hardware, or in the networkin...

7b7e046e912f6f45a721a226e61394b707be0ae6 authored over 11 years ago
Announce master ambitions right away.

This patch lets a port send the first announce message one millisecond
after the port state tran...

f299b6fb07cfc6ab3a9003819be2332756d21051 authored over 11 years ago
Add a configuration file option for the sync receive timeout.

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

c6e046e2a2f690d73b46a736f4c9a6347440b85b authored over 11 years ago
Add a timer implementing the sync receive timeout.

This patch adds a new timer for use in 802.1AS-2011 applications. When
running as a slave in gPT...

7eef4101c9fb27272ca769d78fc12dc4bd0cd39f authored over 11 years ago
Rename the timer for sending sync messages.

This patch renames the per-port timer in order to make room in the
namespace for a timer that de...

329e4a2fff0d78ca6ec3574a4a6f2c0a2bc8d54a authored over 11 years ago
Enforce the absolute lower limit for the announce receipt timeout.

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

7e69672a8846fe10f71c75c7d9fefb38f5e4be9c authored over 11 years ago
Inhibit lost link recovery in P2P mode.

The closing and reopening of the transport when in slave only mode is not
necessary if the port ...

78d3669b06118510d80a1009b2b59a730a436348 authored over 11 years ago
Do not qualify announce messages with stepsRemoved >= 255

See IEEE1588-2008 section 9.3.2.5 (d)

Signed-off-by: Delio Brignoli <[email protected]>

b268cf048b8f07c269d357623651f949903ed2bb authored over 11 years ago
Fix port numbering in clock log messages.

Add 1 to port numbers printed in the log messages to make them
consistent with messages from por...

ad1b14e126e564243224630db7508e4686700ad9 authored over 11 years ago
Use freeifaddrs() to free data from getifaddrs().

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

011ba7b455b844d86672d03cd575d2c06b8ad076 authored over 11 years ago
Version 1.3

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

6bcda22752d5ea946d6104ff719acaffdf2ba49b authored over 11 years ago
Fix bug in unlucky sync/follow up handling.

Ken Ichikawa has identified a situation in which a sync message can be
wrongly associated with a...

7be069817536cd0ce608b468105b2f0eca31807c authored over 11 years ago
Be more careful when receiving clock description TLVs.

This patch adds checks to prevent buffer overruns in the TLV parsing code.

Signed-off-by: Richa...

7789f0c313733621327ab7ed4b3e213a328883ae authored over 11 years ago
Fix check for timestamping modes

The code was checking the wrong interface's capabilities.

Signed-off-by: Andy Lutomirski <luto@...

f6536fe36a0e6c4291a2732606bd61954cd7e48d authored over 11 years ago
pmc: release the message cache on exit.

This makes valgrind happier by freeing any cached message buffers.

Signed-off-by: Richard Cochr...

b74e46724edd1b62177bbc06961418b538352f43 authored over 11 years ago
pmc: send GET management messages according to interpretation #29.

This commit makes the GET messages have data bodies, just like the erratum
says to. It really do...

0650b079f9813ab932c6f7b0d806cfa7065522dc authored over 11 years ago
pmc: add a command to select the target port.

This patch adds a new pmc command called "target" that lets the user
address a particular clock ...

a3762c506ecc5c9e0f1d6c447158fc1cba381604 authored over 11 years ago
pmc_common: introduce a variable for the target port identity.

This patch replaces the hard coded wild card target port identity with
a variable initially set ...

923ff5bbc1696117267de5bbc20588eff92ce57c authored over 11 years ago
pmc: optional legacy zero length TLV for GET actions.

This patch makes the original behavior of sending the
TLV values for GET actions with a length o...

b0d789a73e7f72973a05a89ff514131b02611e24 authored over 11 years ago
pmc: make the TLV length a functional result.

This patch lets the TLV length field of GET messages come from a
function. For now, the function...

4ae27d917962ee72ce44198228c0f37185e4bd15 authored over 11 years ago
msg: Add missing network byte order conversion.

This patch adds proper byte order processing for the target port
identity field of management me...

b4b5487887561ad0d92aded95a28281fb914ae91 authored over 11 years ago
ptp4l: flush old cached packets

This patch fixes a bug with time mysteriously jumping back and forth:

ptp4l[930.687]: port 1: U...

48f4dcbeb294f1241714c7a3709666f5edd6dc13 authored over 11 years ago
Become the grand master when all alone.

This patch cleans up the BMC logic to allow assuming the GM role when no
other clocks are found ...

46db4005895000d3ee97159c349ee6cd1dcf97a5 authored over 11 years ago
phc2sys: Set servo sync interval.

[RC: merged servo_sync_interval signature change with earlier patch]

Signed-off-by: Miroslav Li...

639ebbca13a3633e0ac9caf7f9a034cb720c8632 authored over 11 years ago
Use a dynamic frequency estimation interval.

A slow servo (with smaller constants and lower sync rate) needs a
longer, better frequency estim...

6edbea4996175b883c6ce7e66d5009ac04619ea5 authored over 11 years ago
Adjust constants of PI servo according to sync interval.

Instead of using fixed constants, set them by the following formula from
the current sync to all...

c7c675852ecd1c01e4bb982b81523ac8c5161cf6 authored over 11 years ago
pmc: add our very first SET command.

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

617a9056436c149c2acaa93bf8c56611b35030c9 authored over 11 years ago
Let the clock servo know the expected sync interval.

This patch adds a new servo method to let the algorithm know about the
master clock's reported s...

36951376198a395cc6db0ee3d85037fca2dad9ea authored over 11 years ago
pmc: add a utility function for sending a message with the SET action.

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

6a1a16ac667e6a76363952501160ed0adf738a4f authored over 11 years ago
Throw a state decision event if the clock quality changes.

Management messages can cause a change in the clock quality. If this
happens, then it is time to...

a367175b0d22bbf9818995c4155e170a4b64bb70 authored over 11 years ago
Support configuration of the grand master settings.

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

12ab15818ce8a8f37ac69ac63adca737d7dac6ac authored over 11 years ago
pmc: Support the grandmaster settings management request.

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

661d7a77162bcc5e03675827cea5239aaeaf81b6 authored over 11 years ago
Support the grand master settings management query.

This patch also replaces the hard coded logic for the UTC offset and the
time property flags wit...

24ecd786c86b921f0e8016521da57e2a87996268 authored over 11 years ago
Add a clock variable to hold the value of the time source.

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

4782d669c2511a986325a31c7a57b7330d219208 authored over 11 years ago
Add a configuration option for the time source.

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

f89e20320913b4181f39c86e55275526430610a8 authored over 11 years ago
Introduce a non-portable management TLV for grand masters.

When running as grand master, the attributes of the local clock are not
known by the ptp4l progr...

64ec0478235b8de9403fa93b099e247ffb588932 authored over 11 years ago
pmc: fix coding style by using K&R style functions.

5be0770dfce113f6afa270aac0435c4770f1a8fe authored over 11 years ago
Add another Freescale driver into the support matrix.

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

4b214008698d82467dd4373d48662798384facd2 authored over 11 years ago
Add missing option to the default configuration file.

While the userDescription field is implemented in the code, the same
option is not present in th...

d9bdf4f876e8f98dc0197febaf5614c7e47b72c2 authored over 11 years ago
No need to set kernel_leap twice in a row.

This patch removes a redundant initialization of the kernel_leap clock
variable. The field is al...

c9ac677c98b877ef4e9baf52cb1d1a1ac115a44b authored over 11 years ago
Reset announce timer when port is passive.

Whenever a port enters the passive state, it should act like a slaved
port in one respect. Incom...

81db403af835d41af2b239db2099eb7fc947e0ff authored over 11 years ago
Clean up indented white space.

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

93c609eee90d8e8ded77e3d1eba40d62352512db authored over 11 years ago
Allow received GET management messages to have bodies

You'd probably expect the body of GET messages to be empty, but
interpretation #29 in
http://sta...

42b2173a4db2155f4c85598b54f4fdc897d72869 authored over 11 years ago
Place clock type values in the correct positon

Signed-off-by: Dale P. Smith <[email protected]>

6dedf8bc247cd547f536ac4f3e8409ea6d879fdd authored over 11 years ago
ptp4l: add support for using configured_pi_f_offset servo option

This patch adds support for using the configured_pi_f_offset servo option to ptp4l.
If "pi_f_off...

fa41be7e6e19bf4fe42ade18d4d1737ec5b2d5e7 authored over 11 years ago
Add a new servo option which specifies first step threshold

Current pi servo steps clock without any condition on start.
This patch adds a new servo option ...

28b8dc999600128eb8d75dc400dbb1dd84f88c8a authored over 11 years ago
Add missing state setting in PI servo when date check fails.

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

f657e47c262b66760df51f9c469056995dfdc70c authored over 11 years ago
Minor documentation improvements.

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

b796d90e80817d654d219708b47650f3cc9fa570 authored over 11 years ago
phc2sys: common code exit point for bad usage case

Removed duplicate calls to usage() by providing common exit point for the case.

Signed-off-by: ...

daca2773ded610633ba524179a64d6e1946681aa authored over 11 years ago
Reordered options in manual page synopsis

Options without parameters are now grouped together at the beginning of line
for better legibili...

0bf412d24b51227ed91ebf553b10091e861b7c20 authored over 11 years ago
uClinux: Add another missing system call wrapper.

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

f394e1796d23c2f05b11d9a6ed02f4ec32ee479d authored over 11 years ago
Bring the readme file up to date with the equipment donations.

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

d6d6a9ba641134555850e95ae921b23a7e807b48 authored over 11 years ago
trivial: break the very long lines of the get_ functions.

The get_ranged_ and get_arg_ declarations and definitions are just a wee
bit much too long. This...

e67276a56e2f9b952c52734a7c9755ae21206851 authored over 11 years ago
Silence grep error during build.

Ever since upgrading to Debian 7.0, building linuxptp results in an
annoying error message. This...

c14a243b46dc308bdb5266d0a93e148af0cd3fa6 authored over 11 years ago
config: Apply more strict input validation to almost all config file options

Signed-off-by: Ken ICHIKAWA <[email protected]>

0513c3b15b8a4ea5e61f7b82d4251b9f07d57bc3 authored over 11 years ago
Don't return bogus clock id

phc_open() can open any device and return clkid even if the device is not phc
for example /dev/k...

67c925f45944bb992a9c7edf1133aedd33a75573 authored over 11 years ago
ptp4l and phc2sys: Get argument values with strict error checking

Signed-off-by: Ken ICHIKAWA <[email protected]>

74e703727ec9b1c334c7bfbba9be1cabf4b7b461 authored over 11 years ago
util: Add common procedures to get argument values for ptp4l and phc2sys

Signed-off-by: Ken ICHIKAWA <[email protected]>

42cb449eaaa2129e23cf2693dd5cda7fd42c1252 authored over 11 years ago
config: Apply config value validation to logging_level option

Signed-off-by: Ken ICHIKAWA <[email protected]>

a92f42de389a10477dbec8ddbf239b5939c241ec authored over 11 years ago
Add support for more strict config value validation

This patch adds functions to get int, uint, double value from string
with error checking and ran...

306f83e7b1f9c6ac82bc287875c5b5a09f3e1d32 authored over 11 years ago
phc2sys: Require either -O or -w on command line

The default zero offset can lead to misalignment between system clocks or wrong
time to be broad...

a29b3bc4f94aff6b8602af4f342f42d94c5a3f18 authored over 11 years ago
Document PTP time scale usage and provide examples

Signed-off-by: Libor Pechacek <[email protected]>

6e4734316f26ee715f389407ffd37bc97449c8a1 authored over 11 years ago
Fix parsing of fault_badpeernet_interval option

Signed-off-by: Delio Brignoli <[email protected]>

3f8471ea6878cccaecae20ad0f4190db155f5ce1 authored over 11 years ago
ptp4l: Reset path delay when new master is selected.

When a new master is selected, drop the old path delay and don't
calculate the offset until the ...

026d422f8feedb5b8b87a0b9b0a5e07200aa686a authored over 11 years ago
phc2sys: update open_clock and deprecate '-i' option

This patch modifies phc2sys to enable the use of interface names in clock_open
rather than havin...

73105bc65adf66c39810dab7ec9993c9c40a1cf0 authored over 11 years ago
phc2sys: update usage/error reporting

This patch updates phc2sys usage reporting to give a slightly better indication
of why the progr...

2a897566541f1374db5820e30b3af5b19ebb050c authored over 11 years ago
phc2sys: Use nanosleep instead of usleep.

[RC: use CLOCK_MONOTONIC as suggested on the list.]

Signed-off-by: Miroslav Lichvar <mlichvar@r...

3ae0ff1f4490aa1e453107ebaaead56e3d3e6df6 authored over 11 years ago
fix the check for supported timestamping modes

Fix the check for supported timestamping modes. The device needs
to support all the required mod...

7ce1486d2256f900f5ba4337eebd92e6d550e502 authored over 11 years ago
fix misleading pr_err on poll timeout

If poll() times out, don't print a misleading errno, say that a timeout
occured.

Signed-off-by:...

7b02a5e9bdee5304fa1fef9cb73ce576335834e6 authored over 11 years ago
phc2sys: Change update rate parameter to floating-point.

This allows update intervals longer than 1 second.

Signed-off-by: Miroslav Lichvar <mlichvar@re...

9c83fcb3c9d1e3468e5c1e958379e537cbcc14b7 authored over 11 years ago
phc2sys: Use currentUtcOffset only with PTP timescale.

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

3414d99609f7119c2dc32768e0005ea28ae0f306 authored over 11 years ago
ptp4l: Allow P, I constants over 1.0.

With sub-second sync intervals, it may be useful to set P and I to
values over 1.0.

Signed-off-...

4a3e5857b1c36872ade7352da3a1d704001ef89c authored over 11 years ago
Version 1.2

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

776c88a13c2005bff3d6364cb92ef36b849d13de authored almost 12 years ago
phc2sys: enable PPS output from PHC

PPS output from a PHC has to be enabled by PTP_ENABLE_PPS ioctl. Call
the ioctl when both PHC de...

4004273cd803ecf1acdfbe88db6f9294f55cea10 authored almost 12 years ago
Simplify tests on configuration ranges.

This patch simplifies some expressions which validate that configuration
variables are within th...

f0d21dd80f388153dd3f2297563e07086300136d authored almost 12 years ago
Add option to set maximum frequency adjustment.

The option sets an additional limit to the hardware limit. It's disabled
if set to zero. The def...

3012cf05400676a7c58d50341c8b6ec8c8d475db authored almost 12 years ago
Replace spaces with tabs in configs.

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

5bc98f3130923e9fc8de1da80fac18140238bf77 authored almost 12 years ago
Let kernel synchronize RTC to system clock.

Reset the STA_UNSYNC flag and maxerror value with every frequency update
to let the kernel synch...

4929d50a3f7e3d4b6ca29f9997f18fdfdb239924 authored almost 12 years ago
clockadj: Remove clkid parameter from set_leap function.

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

7b162c4821045882e33910bddf5c4325e261707d authored almost 12 years ago
phc2sys: Use phc_open().

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

d5cf47f7f6ad67833b6e731ed858732576f2079e authored almost 12 years ago
phc2sys: Don't try PTP_SYS_OFFSET with system clock as source.

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

5835effd2a355a96d1264a465299e4cf1fb792d8 authored almost 12 years ago
phc2sys: Read maximum frequency adjustment.

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

e3f57d15793ff377546636396bf5ccc968ba3c43 authored almost 12 years ago
phc2sys: Add option to set domain number.

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

24c4e851fc9a57877e5b7bba79fa541c5c04e892 authored almost 12 years ago