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

Enforce a length limit on an incoming path trace list.

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

f3f62318e20e569c7f1161a07461383652aab0a0 authored over 12 years ago by Richard Cochran <[email protected]>
Add a configuration option to control the path trace mechanism.

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

269f9873f1e5fa945dbf737e7f6087cdbb934fe0 authored over 12 years ago by Richard Cochran <[email protected]>
Add storage fields for the path trace list.

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

edfb5fac849aba0bfb2689c6ca6f3d3091b0a04a authored over 12 years ago by Richard Cochran <[email protected]>
raw: return the length of the PTP message on receive.

The upper layer code will be confused by the extra fourteen byte length
of the Ethernet header.
...

1d1a6acdc115579b5301de326956b373cbe2e8d8 authored over 12 years ago by Richard Cochran <[email protected]>
Add a very simple management client.

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

6def1b06adff679ec8ce5db6c0605992a872c9b4 authored over 12 years ago by Richard Cochran <[email protected]>
Answer all management requests with 'not supported'

Our management interface is not yet terribly useful,
but at least we are honest about it.

Signe...

353b0a2743ab705abbc1347dd818f9191c73e064 authored over 12 years ago by Richard Cochran <[email protected]>
Move the protocol version macro to a public header.

This will be needed by the management client program.

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

ba5c5704e6311dae2356f2d46b79d87065d9674d authored over 12 years ago by Richard Cochran <[email protected]>
Make the function to generate a clock identity a global function.

This will allow code reuse in the management client.

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

582a8858d74c1ecac6fea4c68193d3c5b95b2ef3 authored over 12 years ago by Richard Cochran <[email protected]>
Place the sk_ globals into their proper source module.

This will allow reusing sk.c in the management client program.

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

b2072076bf2e56b0ce9a2f15f4449504da88d8de authored over 12 years ago by Richard Cochran <[email protected]>
Provide a method to send a management error status message.

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

21c2fe30c7b9b3eed9ce0a49c02ed8923fd74c26 authored over 12 years ago by Richard Cochran <[email protected]>
Provide a port method to allocate a management message reply.

This function will be needed for both positive replies and error status
messages.

Signed-off-by...

f233528ea4ba9960845a9b705aec9cc9d3deb2b1 authored over 12 years ago by Richard Cochran <[email protected]>
Filter port management messages by the target port number.

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

247edc89d363f05c44635d588a217a55362138d2 authored over 12 years ago by Richard Cochran <[email protected]>
Adding missing forward declaration.

Including port.h without clock.h produces a compilation error.

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

2d2e38b3ba38beb16be3d5f62010e1045936a62e authored over 12 years ago by Richard Cochran <[email protected]>
Add a functional framework to manage the clock and its ports.

This commit only adds support for forwarding the management messages.
The actual local effects o...

4f04c4139d8ee3fcf54cfec873a1da89f2dead80 authored over 12 years ago by Richard Cochran <[email protected]>
Add hooks for converting TLV values to and from host byte order.

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

4e173932d22c950ab23590e2ca0685c775d2f7f6 authored over 12 years ago by Richard Cochran <[email protected]>
Convert the management error status TLV to and from host byte order.

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

d308df8e27ab32a422ef5950914b3b50ff9a8d45 authored over 12 years ago by Richard Cochran <[email protected]>
Convert TLV type and length to host byte order on transmit.

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

7d32a4bce7cc9ffe43f3d24dedd71611471f891a authored over 12 years ago by Richard Cochran <[email protected]>
Add macros and enums for the various TLV codes.

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

7f18da0191d5de7d32aa56495e7295e80e408234 authored over 12 years ago by Richard Cochran <[email protected]>
Convert the management TLV to and from host byte order.

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

b654f6c35ccd4b0738ab04dfa2978fe4da6525ad authored over 12 years ago by Richard Cochran <[email protected]>
Convert TLV type and length to host byte order on receive.

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

f20cf6225a75f3d109c1ef0fadbfa78ff03e1d52 authored over 12 years ago by Richard Cochran <[email protected]>
Remove unused macro.

Ever since 0afedd79, the DEFAULT_PHC macro is obsolete.

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

aeba3afd91f64ce2c334c89d48b0506a57223c78 authored over 12 years ago by Richard Cochran <[email protected]>
Add an option to assume two step messaging.

Some commercial 802.1AS switches do not feel obliged to set the two step
flag. When we try to sy...

eed8ed05c84cbdbcaa1b9a7f51008bbfd8eb871c authored over 12 years ago by Richard Cochran <[email protected]>
Replace hard coded logMinPdelayReqInterval with configuration option.

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

4b0f4fda420ec1c1bf3b339dc89836f69f743100 authored over 12 years ago by Richard Cochran <[email protected]>
Add a configuration option to support 802.1AS only hardware.

Some of the time stamping hardware out there only recognizes layer 2
packets, and these do not w...

e757b7a9d41feb485614c76e4843fde5566df895 authored over 12 years ago by Richard Cochran <[email protected]>
Add a default configuration file for 802.1AS aka gPTP.

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

48e83e8afa1821c56bbb199875d0160ee4aa7e08 authored over 12 years ago by Richard Cochran <[email protected]>
Add the transport specific field into the config file.

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

928abf32f26a699bc1424201fd72295a599058dc authored over 12 years ago by Richard Cochran <[email protected]>
Add a configuration option to specify the L2 MAC addresses.

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

7460d2756a82dce2c683725fb89bba00b0195d8e authored over 12 years ago by Richard Cochran <[email protected]>
Drop incoming packets on transportSpecific mismatch.

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

6258aa0badf22b039e60ba5ef7923a03b73ff7f4 authored over 12 years ago by Richard Cochran <[email protected]>
Add transmit support for the transportSpecific field

Add transportSpecific parameter to config file parser
Set transportSpecific field in message hea...

9bdf92a7cfd6feda87db8c4372ce99522f71f175 authored over 12 years ago by Delio Brignoli <[email protected]>
Fix typo in the readme's driver support matrix.

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

e29ef344326e34353039710f7c452246ee929459 authored over 12 years ago by Richard Cochran <[email protected]>
Define CC = $(CROSS_COMPILE)gcc in makefile and add EXTRA_CFLAGS, EXTRA_LDFLAGS

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

3a64baee50da4830be2d6fbaa07098ddba9fd7fd authored over 12 years ago by Delio Brignoli <[email protected]>
Update the readme file for Linux kernel 3.5.

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

480a16596f89c66b94803496d443e79ed3ffc27d authored over 12 years ago by Richard Cochran <[email protected]>
Bring the driver support matrix up to date with Linux version 3.4.

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

040c644f851f6a5f248798ed372c479f7c2f017b authored over 12 years ago by Richard Cochran <[email protected]>
Correctly handle a negative log message interval.

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

6ad9af1a25875bfc3ca29139f8d542c34c84807e authored over 12 years ago by Richard Cochran <[email protected]>
Prevent message buffer corruption on receive.

An oversize incoming packet might overwrite the reference counter in a
message. Prevent this by ...

d7a67e9f897d40d953eb4260c2823e61aea78a66 authored over 12 years ago by Richard Cochran <[email protected]>
Update data sets after loss of foreign master.

If an announce timeout occurs on a port, and no other port is slaved, then
the clock must become...

c1973c5e11cf0f998ca72024e2721a944de8f01f authored over 12 years ago by Richard Cochran <[email protected]>
Fix unsafe reference of foreign master announce message.

When computing a port's best foreign master, we make use of a message
reference that possibly mi...

7ac297a08274bf076aae86c58237a2d29f45460d authored over 12 years ago by Richard Cochran <[email protected]>
Remove unneeded newline from pr_info message.

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

36166922031bc1317ed6e8937516c3ea929daa3f authored over 12 years ago by Richard Cochran <[email protected]>
Recover from lost link when running in slave only mode.

Under Linux, when the link goes down our multicast socket becomes stale.
We always poll(2) for e...

646bf8bc26ca32206852b312b2053891c5f45792 authored over 12 years ago by Richard Cochran <[email protected]>
Fix memory leak, reference counting, and list handling in message code.

The message code is horribly broken in three ways.

1. Clearing the message also sets the refere...

3d7372d529b147edbd4a1efe5ffe88af592bacaa authored over 12 years ago by Richard Cochran <[email protected]>
Log the relative time rather than the process identification.

When diagnosing a log file, it can be useful to know the relative time
between the log entries. ...

b34f74bf038cfb4fbfe591a63f6b8f020a0d32ca authored over 12 years ago by Richard Cochran <[email protected]>
Tell how to get the sources in the readme file.

Also fix a poorly worded sentence in the system requirements.

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

ed504c10ca9ea9e2719587a7404da313a3fb8ed1 authored over 12 years ago by Richard Cochran <[email protected]>
Fix the TLV structure declaration for actual use later.

This structure is not very useful for message parsing. This commit fixes
the declaration in prep...

8b8576428f6f585f1b8549658d148e9f9de2c187 authored over 12 years ago by Richard Cochran <[email protected]>
Refactor the post receive method to check the length first.

This patch is in preparation for handling the suffix TLV data. We will
need to use the structure...

ff44e305b138f33a224d2672bc0a45d39018b928 authored over 12 years ago by Richard Cochran <[email protected]>
Add declarations for the signaling and management message types.

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

018ba27ff8220a01ef616a7bdb2f862467ca4675 authored over 12 years ago by Richard Cochran <[email protected]>
Add the suffix field onto the general messages.

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

2633df45cf6f1fb83a511efb6a421654a797e069 authored over 12 years ago by Richard Cochran <[email protected]>
ptp4l: use ethtool operation to double check PHC

If the new ethtool operation is supported, then use it to verify that the PHC
selected by the us...

0afedd7993313a9f92b50d1f7cdddc347e412d08 authored over 12 years ago by Jacob Keller <[email protected]>
ptp4l: throw a fault for other port event failures

this patch makes sure every function is checked for a negative return value
and ensures that a f...

821798da9d7b80bf4d683c6a48ad05b14e541cc4 authored over 12 years ago by Jacob Keller <[email protected]>
Clamp maximum adjustment to numerical limit.

On 32 bit platforms, a PHC driver might allow a larger adjustment than
can fit into the 'long' t...

d7bcdca7a9550ac7439f0aba5edfa9c3ae94d4df authored over 12 years ago by Richard Cochran <[email protected]>
Make the PI constants configurable.

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

f2aae280b3409d9dfdaf7e8784e71e7dccb78407 authored over 12 years ago by Richard Cochran <[email protected]>
Add transport over UDP IPv6.

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

aea4cfcd507bcbc986bf52659621501992122540 authored over 12 years ago by Richard Cochran <[email protected]>
raw: Implement the peer transmission option.

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

39834068187a13c8d484b7c29d58c3e33e8b9427 authored almost 13 years ago by Richard Cochran <[email protected]>
Add a command line option to select the peer delay mechanism.

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

b35a45d1a4aadf3f4029422c349920acda785e4f authored almost 13 years ago by Richard Cochran <[email protected]>
Use the peer transmission methods in the port logic.

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

4af8c74450996666a7d32dca2f4e8c200efdf57e authored almost 13 years ago by Richard Cochran <[email protected]>
Expand the transport layer interface with a peer transmission method.

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

beb3d5d8211799231a3f6d95091543b56ec46199 authored almost 13 years ago by Richard Cochran <[email protected]>
Add a helper function to compare message source ports.

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

9dc860642fc295d071c4fbc77c8bcb6ba4543e22 authored almost 13 years ago by Richard Cochran <[email protected]>
Throw a fault when multiple peers are detected.

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

cd0fbc5c95d2efe67f7b9c2143b4f8f514812e43 authored almost 13 years ago by Richard Cochran <[email protected]>
Expose the peer delay flavors in their own header file.

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

a8a5409b04ecd995be9a95edf9c83c47245f244c authored almost 13 years ago by Richard Cochran <[email protected]>
udp: Implement the peer transmission option.

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

a0efbfd13812abdbdfccbaaffc636742049234a9 authored almost 13 years ago by Richard Cochran <[email protected]>
Implement the port peer delay mechanism.

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

4df18c6fc9804234323d1db9c7df200d8cd31c94 authored almost 13 years ago by Richard Cochran <[email protected]>
Add a clock method to accept a peer delay estimate from a slave port.

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

806d1e9b77d8fa72db3c54019d954499429fe65e authored almost 13 years ago by Richard Cochran <[email protected]>
Add port fields to remember peer delay messages.

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

d345ac5e4e2a3b73b4413c41324bfc709ff9a5c8 authored almost 13 years ago by Richard Cochran <[email protected]>
Add the peer delay messages into the message layer.

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

e213ff047984930a84d8c21c1a781f958671413b authored almost 13 years ago by Richard Cochran <[email protected]>
Fix a misspelled field name.

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

28dc3613d7c269452bc1d04c5d65e04d6ed4773a authored almost 13 years ago by Richard Cochran <[email protected]>
Warn when receiving delay requests on a peer to peer port.

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

2d06c5856dbbed8dbc178e74adf556cda890db34 authored almost 13 years ago by Richard Cochran <[email protected]>
Let each interface use its own transport.

This will allow running a boundary clock that bridges different kinds of
PTP networks.

Signed-o...

59f00b5061de480e425323662ea60946c2334eb5 authored almost 13 years ago by Richard Cochran <[email protected]>
raw: fix filter reject for non 1588 frames

Signed-off-by: Eliot Blennerhassett <[email protected]>

433b6f635eca26ec2da80b0b89a2af77898199f6 authored almost 13 years ago by Eliot Blennerhassett <[email protected]>
Output an error message when no interface is specified

Signed-off-by: Christian Riesch <[email protected]>

d5f953fed99a811e2a815bc247558c2e34bcc8ec authored almost 13 years ago by Christian Riesch <[email protected]>
Show every port state transition, including (re)initialization.

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

04e59b0b275b4943fafc2373c3ffe6d3df132862 authored almost 13 years ago by Richard Cochran <[email protected]>
Automatically clear any port fault after fifteen seconds.

The current port code is very defensive. As the code now stands, we throw
a fault whenever we ca...

f2ffeae0f43934285d30a0cf882841c2de1c80a7 authored almost 13 years ago by Richard Cochran <[email protected]>
Rationalize the port reset logic.

This commit makes each pair of port functions, open/close and
initialize/disable, balance each o...

2607806579a982fcc527a4f619ed87a5a2f7c2e8 authored almost 13 years ago by Richard Cochran <[email protected]>
Add a missing doxygen comment to the main program.

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

1b78bb0b54228a0cd4f40a3c6a55904375e9d686 authored almost 13 years ago by Richard Cochran <[email protected]>
Remove a useless variable from the file descriptor array data type.

It was a cute idea to have the raw Ethernet layer use just one socket,
but it ended up not worki...

0ca8143da50620116400bb6545ff9fee32843217 authored almost 13 years ago by Richard Cochran <[email protected]>
Add a method to remove a port from the clock's polling array.

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

39b10a5a167627a5a3ab87d462e9a50da020bbf7 authored almost 13 years ago by Richard Cochran <[email protected]>
Throw a fault event if the BMC algorithm fails.

That makes more sense than re-initializing, perhaps.

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

2ff091b14b90383456781cd5a8a1be88a2a3d4ae authored almost 13 years ago by Richard Cochran <[email protected]>
Make the number of transmit time stamp retries configurable.

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

3ff62648fa75f9649a4dd8fa45d42f42c48adf56 authored almost 13 years ago by Richard Cochran <[email protected]>
Rework the configuration file interface.

This change will make it easier to extend the configuration file contents
to include arbitrary n...

da69203517da61535a4a093e19442c7b8ee9e8d4 authored almost 13 years ago by Richard Cochran <[email protected]>
Add a header defining the Ethernet header and MAC addresses.

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

5dbca8a6cd6df906c279bf47d561b692b5c77d65 authored almost 13 years ago by Richard Cochran <[email protected]>
Leave some headroom in the message buffers.

This room will be used by the Layer 2 protocols.

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

7d54d444f58086f1f1ff65b2e8a448beecdae588 authored almost 13 years ago by Richard Cochran <[email protected]>
Add a transport over raw Ethernet packets.

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

32d461d4edecafb053c149946f5318cfadfb6c37 authored almost 13 years ago by Richard Cochran <[email protected]>
Improve error reporting on receive path.

In some error cases, no message is logged. Now we always complain loudly
when an error occurs.

...

aa142c5240994ce48b52141271fb22587575c11c authored almost 13 years ago by Richard Cochran <[email protected]>
Move some sharable socket code into its own source file.

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

319aae14032c606e65dc3dc0ce69b916a5b456a4 authored almost 13 years ago by Richard Cochran <[email protected]>
Add missing release method to the UDPv4 transport.

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

9d4d68e6676fe0c94b397acfc1a99a5113373e31 authored almost 13 years ago by Richard Cochran <[email protected]>
Clean up dynamic fields when closing a port.

In the course of development we added more and more allocations into the
port code without freei...

9c9dc35f1329f03d22c1254cf8a6c7bc3ad3a9c8 authored almost 13 years ago by Richard Cochran <[email protected]>
Make the transport layer more opaque.

Although the UDP/IPv4 layer does not need any state per instance (other
than the two file descri...

29463cd3068c29a510ce5651588943175362da0e authored almost 13 years ago by Richard Cochran <[email protected]>
Clear out saved time stamps after setting the clock.

When we create a discontinuity in the clock time, we must avoid mixing
local time stamps from be...

7421e74acaff2b95af3652dc0173be03c24f0f61 authored almost 13 years ago by Richard Cochran <[email protected]>
Do not calculate the path delay without valid sync time stamps.

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

2fcac204de1dbd3fd26ef1ebaed330cd188f380d authored almost 13 years ago by Richard Cochran <[email protected]>
Add time value operations to clear to zero and test for zero.

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

e38488ae48380c26f3d86c0cf551afa97aab0d16 authored almost 13 years ago by Richard Cochran <[email protected]>
Throw an error at the port level on missing transmit time stamps.

We always wait for the transmit time stamp after sending an event message.
Thus a missing time s...

5f0c0344944d98289e7f54174bc0326661463004 authored almost 13 years ago by Richard Cochran <[email protected]>
Warn loudly whenever event messages are missing time stamps.

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

51162c01af842a9aa6856b8205d9e0b0a5c2eff7 authored almost 13 years ago by Richard Cochran <[email protected]>
Fix segfault after missing transmit time stamp.

If the networking stack fails to provide a transmit time stamp, then we
might feed uninitialized...

a9e88a0a49a418e149c64e786543edff12040868 authored almost 13 years ago by Richard Cochran <[email protected]>
Remove silly and incorrect error message.

Commit 32133050 introduced a bug that gives a bogus error message on
every 'general' (non-event)...

150da0cba9269264473a9f8427f5cfaf6310d33f authored almost 13 years ago by Richard Cochran <[email protected]>
Verbosely identify the port and message after network errors.

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

eb5b7b1e6081d6b8133e5ebbb170f3067692a7be authored almost 13 years ago by Richard Cochran <[email protected]>
Be more verbose about errors on the receive path.

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

321330501f62f7a15dfa470ad11fac49c0ed3981 authored almost 13 years ago by Richard Cochran <[email protected]>
Initialize the time properties data set.

We can reuse the same function that sets the data sets in case of
becoming grand master.

Signed...

6daff667c5260f1de80ac8f6d064bc433f8205a4 authored almost 13 years ago by Richard Cochran <[email protected]>
Fix compilation for uclinux toolchain lacking <sys/timerfd.h>

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

d6ce3fbb3dfb1380147d1b089681c17a05712817 authored almost 13 years ago by Richard Cochran <[email protected]>
Clean up all of the binaries for the 'distclean' target.

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

4d0b2e50010f5e6cad113f7a01bd76e3d0c84eb1 authored almost 13 years ago by Richard Cochran <[email protected]>
Add a utility program to set driver level time stamping policy.

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

4b10792002e519c5e6204f8bb96536bb6e7cc74a authored almost 13 years ago by Richard Cochran <[email protected]>
Add a tool to synchronize the system time from a PTP hardware clock.

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

af3cbb5fbdff84f73616ceea20c532990e1ddaa7 authored almost 13 years ago by Richard Cochran <[email protected]>
Go ahead and use a negative path delay estimate.

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

43bd313eb147fbbb2ec7ecbdff8fcaa8368a305c authored almost 13 years ago by Richard Cochran <[email protected]>