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 options to tag ptp4l and phc2sys log messages.

When running multiple instances of ptp4l or phc2sys, it's difficult to
tell which log message be...

0f6c6972c791813e0b9618e9158da3951a099737 authored almost 8 years ago
ptp4l: Make UTC offset configurable.

Currently UTC offset is defined as a constant - CURRENT_UTC_OFFSET, and if
a leap second is adde...

33e62f992542ac5ce6bdbb8ae6c34dec7011b543 authored almost 8 years ago
fsm: Make the transition out of INITIALIZING part of the FSM code.

The state machines in 1588 do not specify an event that causes a transition
out of the initializ...

b738afb6044a8c59310fc13f646c8f5c4dcf2963 authored about 8 years ago
port: Make the finite state machine into a function variable.

This allows adding new FSM flavors in the future.

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

10d4e7f8b0525bbf72981e3e5fcf0c10833a7631 authored about 8 years ago
Change a misleading fault handling function signature.

Looking at the fault logic in port_dispatch(), you might think that
the function, fault_interval...

80a28a9dc322f28b991effc44ec1c5362a598281 authored about 8 years ago
Make the fault handling code more readable.

The code that decides whether a fault qualifies for ASAP treatment is
a tangle of logical operat...

1f66948d3853c8b08c7f52c9c8daecb361164a43 authored about 8 years ago
Disentangle initialization from fault clearing.

Although leaving the INITIALIZING state and clearing the FAULTY state
ASAP both result in a port...

01ee947457813078f63d606c310818d6dedb4ca3 authored about 8 years ago
Update TAI-UTC offset

A leap second was applied to UTC on 2016-12-31 and the offset between
TAI and UTC is now 37 seco...

0309a880fb4389e869ae0ba431d3d17b1ec5a272 authored about 8 years ago
ptp4l: Document the "long" command line options in the man page.

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

4e966536c6253d73e1a3202e8b562ab0f518e33b authored about 8 years ago
config: Fix bitwise copy-and-pasto for command line items.

The recent change allowing every configuration option to appear on the
command line wrongly used...

e658982624bfd5cd998066fdf35b93cdcf8797ca authored about 8 years ago
Add an acknowledgment in the readme for Exablaze.

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

81d97657bf8aeeb216d91ca160ff80569d10f038 authored about 8 years ago
makefile: Make the 'clean' target conform to standard practice.

This patch makes the build system less surprising by removing the
executable binaries in the 'cl...

356eb81d4de85bc53f09161bd4a611974a271d5c authored about 8 years ago
ptp4l: Accept any configuration option as a command line argument.

This patch provides a way to use the entire table of configuration options
as "long" command lin...

4e8dbd84925d36f1193a7339a542677d884d3ba1 authored about 8 years ago
Version 1.8

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

891d56e4292653c5c19ac8345159a1f1f5b2df26 authored about 8 years ago
clock: Monitor the link status using a RT netlink socket.

Poll for link up/down events. When a link goes down, the port becomes
faulty until the link goe...

3b82f227ce96a3debc13357e71493f5df72486cc authored over 8 years ago
rtnl: Introduce RT netlink sockets.

This patch adds a source module that implements RT netlink sockets
for the purpose of link monit...

0b3c045a4236f128ab4c1592e6cc91adc1cd6eb0 authored over 8 years ago
port: Provide methods to set and get the link status.

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

5e3156da156a972151ffb1ccac00027cf3a350ab authored over 8 years ago
clock: Remember each port's interface index.

We use a hash table to remember the mapping. Since our existing hash
table is a simply string h...

e995cf7f5297c431ebc2bfa2de67ffc01362b7ed authored over 8 years ago
clock: Fix coding style within a helper function.

No functional changes.

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

6b99df29e050110b1d625d3448621cd4df6501e6 authored over 8 years ago
clock: Remove stray semicolon.

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

c8b525755b79f2222f93e28526166952993549af authored over 8 years ago
sk: Add a method to obtain a socket for utility purposes.

The clock module will want to know the interface indexes, in order to
implement link monitoring....

44a469597a70ca9135d400d6bcb958572c269d41 authored over 8 years ago
clock: Remove cruft from the creation method.

The time stamping setup code needlessly queries the configuration data
base over and over, rathe...

1de59d62266a5770a3789faece251eda46a495ff authored over 8 years ago
Fix regression in one-step configuration.

We activate on-step mode based on the "time_stamping" and
"twoStepFlag" configuration options. ...

86ed2432f0ec4ec7abf124448f93668d6e04157f authored over 8 years ago
port: Fix input to the BMC for forming the spanning tree.

If a non-slave port on a boundary clock see an announce message, then it
must decide whether it ...

5e5c98b3dabb7f4379fb337783016475b27bcb89 authored over 8 years ago
Version 1.7

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

159f4a265d35ed1753e18f9d3fb6e4f403238f4d authored over 8 years ago
timemaster: ignore failures of non-essential processes.

Assume only the chronyd or ntpd process is essential for synchronization
of the system clock and...

914ca86b37ad9fc5a61177308c3319c126c7246a authored over 8 years ago
timemaster: allow arbitrary options in server/refclock directives.

Instead of trying to support all options of the server and refclock
directives in both NTP imple...

ac77099493f02fe3bdfd1c72ce4a81faebefae26 authored over 8 years ago
timemaster: add option to specify first SHM segment.

This allows using a sequence of SHM segments that starts with a number
larger than zero, which c...

395544d1179d29cd5aa1360f5913657e5d298f00 authored over 8 years ago
Introduce options to set DSCP values in PTP messages.

In the last years there are several media streaming standards
evolving that are relying on PTP. ...

1e667ff7fbde4f6c4d01b63b5ea8e8a33c3141f5 authored over 8 years ago
Fix data type for return value of vasprintf()

Since size_t is an unsigned data type, it won't evaluate correctly on errors
of vasprintf(). Thi...

dc09312ce7d096a5f4ad7ed05925c6bd80d2bc30 authored over 8 years ago
uds: Prevent unintentional announce message timeouts.

During the configuration rework, the announce span was wrongly converted
into a hard coded macro...

3938cbc1015b7c33521cb02f644836a1db4cb91b authored over 8 years ago
Fix the man page regarding the '-p' option.

The -p option for ptp4l, which specifies the PHC device, was added
before the ethtool get_ts_inf...

0d61027fd324331f342db2e5dbcb7cc7bc70b303 authored over 8 years ago
Properly initialize the message lists.

The message lists are implemented using a TAILQ from queue(3). The heads
of the list must be in...

01dcf7e9ac2c7d8bec3bbc69b44d1f83b3dfa44e authored almost 9 years ago
clock: specify type at creation time.

Store the type in the clock object explicitly.

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

9c8fe6a94ed2591c4fbc6e284072511450ee6324 authored almost 9 years ago
Let the clock code figure the PHC index.

The code that determines the index of the PHC device is useful to all
kinds of clock devices.

S...

d825b1d5493b8a2ef5573217bbe42adf4fe5bbf0 authored almost 9 years ago
print: add missing include directive.

This patch adds a #include needed for the declaration of the function,
rate_limited.

Signed-off...

1b7088dea8a6f7077284d57d8294c5df28ad14c6 authored almost 9 years ago
fault: protect header against multiple inclusion.

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

62ce44a08a5c208d28bc15d55d27a63afe0a45aa authored almost 9 years ago
config: count the interfaces as they are added.

This information is useful to the various clock types.

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

63e530e2975821e84491cb99266a83596b8af3d0 authored almost 9 years ago
Perform the time stamping mode check in the clock module.

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

8f7fb11fbc60f4c5c53b4e09c26f55a590625233 authored almost 9 years ago
clock: offer a method to get the first port in the list.

This function will allow the TC code to iterate over the ports without
calling into the clock lo...

adf36154f5f9b4fa57e8e1efd67766a586992423 authored almost 9 years ago
clock: offer a method to get the type rather than the number of ports.

The port code is not interested in the number of ports but rather the
clock type. Since the pol...

948d5115502e48b798bbd29ca0816d9551071762 authored almost 9 years ago
Move the clock type enumeration into the clock header.

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

fd2eb9411feec13e9ea94b3ee9d941eb14f0abcb authored almost 9 years ago
clock: remove redundant parameter from the create method.

There is no need for the 'ifaces' parameter since the list of network
interfaces is already pres...

bbe55fbea4936fa3e3fa6398dac72016dd18a4eb authored almost 9 years ago
clock: simplify the create method.

With the new configuration API, there is no need to pass the default data
set. Instead, the clo...

9b27664cfc570ef9f00e1ded3e7fac2e8611e4cc authored almost 9 years ago
config: get the time stamp information early.

There is no need to have a function to get this information as
we can easily obtain it when the ...

2fc2af97d81a40d6ab3c5b0c54c33889782c3bb1 authored almost 9 years ago
tsproc: Fix time stamp handling with P2P one shot mode.

When the P2P link partner is using one shot mode, the residence time
in the peer (t3 - t2) is re...

3f2ef92052ea957fa6591d3045e915f40663b47c authored almost 9 years ago
tsproc: allow zero remote timestamps in delay update

When remote timestamps from P2P delay measurement are not known (the
remote processing time is s...

999c86f4a9da4bf4508b3a69289f58166ed18a55 authored about 9 years ago
Fix typo in manpage of ptp4l

There is one parenthesis too many in the manpage of ptp4l.

6eec5a0d48e4c9503905222298a621c6f368cd5c authored about 9 years ago
Version 1.6

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

b9aa4d783e1c5fe7be4173a7a7e8c8bba7276652 authored over 9 years ago
Update UTC offset

The difference between Coordinated Universal Time UTC and the International
Atomic Time TAI is :...

4a875d4e3d8431f459fb51b0d96474257db8a180 authored over 9 years ago
util: add function for simple rate limiting.

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

01d523fb483e2f2cb5d86a18c6fb03a8d1c4961c authored over 9 years ago
port: print bogus delay request message as rate limited info.

Upgrade the message level to info so the user can see it, but print it
at most once per 5 minute...

cdd11b744b031c886ac3ae02a17e3e1c1bbe5b3a authored over 9 years ago
print: add rate limited versions of pr_* macros.

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

ddd653e7a9056594b716dafbe37d5d820ecc62af authored over 9 years ago
Merge the hybrid E2E work.

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

776f772c36520d28d30c7008095d086bcefd7746 authored over 9 years ago
uds: restore delay mechanism to zero value.

The new configuration code inadvertently causes the UDS port to use P2P
messaging when P2P is se...

2201345058e0ea461c06950c38575735deba4a03 authored over 9 years ago
udp6: set hop limit with udp_ttl option.

Use the udp_ttl option to configure both IPv4 and IPv6 transports.

Signed-off-by: Miroslav Lich...

d8bfa0fa69b1143b5ef26cb1424042f40ba6dbef authored over 9 years ago
Support hybrid E2E using unicast delay requests and responses.

The draft Enterprise Profile [1] specifies a hybrid E2E delay mechanism,
where the delay respons...

e85cb68320a36efb03aae97a536e1d7e9c75aefe authored over 9 years ago
Use the standardized low level socket address format.

The raw Ethernet transport code invented its own way of storing the MAC
address into our "struct...

d0eb73c87b389bee54d3dd215694ac4438f1564a authored over 9 years ago
udp6: set the destination port unconditionally.

Even if the caller provides the destination address, still the port must
depend on the passed 'e...

1e35b91c6a05730e9e88d1009d59362113cd128f authored over 9 years ago
udp: set the destination port unconditionally.

Even if the caller provides the destination address, still the port must
depend on the passed 'e...

8d1b30d91cb7331f42e1796b3d7fe24b5036f057 authored over 9 years ago
util: add wrappers for memory allocation functions.

Add wrappers for malloc(), calloc(), realloc() and strdup() that check
if the allocation failed,...

e4325ee3fb8daecd980761d2cc7d10788bbfc83c authored over 9 years ago
util: exit in string_* and parray_* functions when allocation fails.

16bb89d5bfb678238420497f0ac18fe65e9bf369 authored over 9 years ago
timemaster: use wrapped memory allocation functions.

f44178476bb1eaa34e2a1f234bbc56fddd47331b authored over 9 years ago
port: constrain the master's logMinDelayReqInterval.

Buggy or mis-configured masters can place bogus logMessageInterval values
in their delay respons...

0135e5344d52939b5c2514ac0e86bc599aa50be5 authored over 9 years ago
Fix integer overflow in the foreign master bookkeeping code.

The logMessageInterval field has an improbable range from 2^-128 to 2^127
seconds. The extreme ...

a8a3ddec6ab31c8111bc3374fb7cbfe9957fcda5 authored over 9 years ago
config: introduce a proper creation method.

Now that all of the legacy, open coded configuration fields are gone,
we can follow a normal cre...

7b438defe5e544e43aa29a952f2f519413214683 authored over 9 years ago
config: convert 'revisionData' to the new scheme.

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

b708ee384595b386d11d98ff30428e5f21787b3c authored over 9 years ago
config: convert 'userDescription' to the new scheme.

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

bf229e1e0f8778e7e608bb060da093bc75a032cc authored over 9 years ago
util: provide the 'count_char' helper function.

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

efa91dda772e1dae88128782cd48de578e651ad6 authored over 9 years ago
config: refactor the parsing code.

Now that all of the legacy parsing code is gone, there remain two
identical parsing functions. ...

70ea3f3f3286216ec8da5119d194dd44fcb62fa8 authored over 9 years ago
config: convert 'productDescription' to the new scheme.

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

4e23ac1b216344582ea260f7306ad3da1746e930 authored over 9 years ago
config: save a block from falling off the RHS of the page.

This patch rearranges the guts of the main parsing loop to keep it
more within the 80th column. ...

1e9ffd50ae10bd203cb94ed29de5ee5cc3fb0cef authored over 9 years ago
config: remove the last remaining legacy item.

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

13aec6d133ac3894710943e86afdb8207dc19ea6 authored over 9 years ago
config: convert 'manufacturerIdentity' to the new scheme.

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

e82462e295d3455baf5d88ef9f32c9d12b47a62d authored over 9 years ago
config: convert 'time_stamping' to the new scheme.

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

ed566513e03c7583defa9c92c964c6dd1155ae58 authored over 9 years ago
ptp4l: set print levels earlier.

Now we have debug messages in the configuration code. Therefore set up
the print levels immedia...

30157821f77b2a5bac25908c76840011fd6a328c authored over 9 years ago
config: convert 'clock_servo' to the new scheme.

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

8836f3cc6768b409dcbdc01ade4a0a0ae3c5bd56 authored over 9 years ago
config: convert 'uds_address' to the new scheme.

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

e27b036d09426d30fcba6380250e94c00edbc537 authored over 9 years ago
config: convert 'p2p_dst_mac', letting it be a per-port option.

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

852c288ebe1684f947db69ddfd74473135c3edb7 authored over 9 years ago
config: convert 'ptp_dst_mac', letting it be a per-port option.

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

a31f2d0ddf361bb7b558240730b6d3a7369b1d26 authored over 9 years ago
util: add a helper function to scan a MAC address.

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

5fe77584b414904620806fdb0343a91f38a16d6c authored over 9 years ago
config: introduce a string type.

Global default values will be static strings, but values from the
configuration file will be dyn...

c05dcce7244f3f2f8e11d650cb20fabea0c94171 authored over 9 years ago
config: convert 'delay_filter' to the new scheme.

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

b6a91303a909862a47d3f1fa6fcd2a6e30dbcede authored over 9 years ago
config: convert 'pi_proportional_norm_max' to the new scheme.

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

b57840cef9a27dc5949e8a5e9bb8963ba6e76072 authored over 9 years ago
config: convert the 'max_frequency' option to the new scheme.

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

e8a2956ce05190da4b61af518edf38784c7b871b authored over 9 years ago
servo: store the configuration in the servo data structure.

This will allow removing the code that passes configuration options via
global variables.

Signe...

bde8ef4360b742569985934644ad2b2d4bf00199 authored over 9 years ago
udp: configure the socket with the TTL option.

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

d4995c6d71ded118dc90834fd1f886b47ad75301 authored over 9 years ago
config: convert 'gmCapable' to the new scheme.

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

2816133b5e40760f2e9355b85fbf68f11aae74b0 authored over 9 years ago
config: convert 'ntpshm_segment' to the new scheme.

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

4c9c44742937ee34ce49300e7d3a2ad4e8c45fd9 authored over 9 years ago
config: port: convert 'logMinDelayReqInterval' to the new scheme.

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

0578e321fbed602b2a87fb0d460a3b7c1646aad7 authored over 9 years ago
config: clock, port: convert 'freq_est_interval' to the new scheme.

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

ffa7d49df60dc61c9e547d262082d195f3ef91fd authored over 9 years ago
config: port: convert 'ingressLatency' to the new scheme.

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

83e26ec68b7613255b88611d7ec8b85777f447a1 authored over 9 years ago
config: convert 'slaveOnly' and 'twoStepFlag' to the new scheme.

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

ea574c7e4f6b45bee2f8663e11249f1b1fe1435e authored over 9 years ago
config: convert 'tsproc_mode' to the new scheme.

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

a8b550887db541aafbdfb6ab46015ec09603ebdb authored over 9 years ago
config: convert 'delay_mechanism' to the new scheme.

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

bf290220050bec717f8e47cd887e4239b579f2a1 authored over 9 years ago
config: convert 'network_transport' to the new scheme.

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

3d1d93bcb27031c6f792cfd298124195ef107c20 authored over 9 years ago
config: add support for enumerated types with string labels.

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

5d184839d037e6464859533d022c72a88f75d824 authored over 9 years ago
config: convert 'domainNumber' to the new scheme.

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

1080826d6c3e41172887c21bec318859d62eedb7 authored over 9 years ago
config: convert 'offsetScaledLogVariance' to the new scheme.

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

9d929fe424e6e0ab260f198b03c17a2409152fd8 authored over 9 years ago
config: convert 'clockAccuracy' to the new scheme.

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

4e27856c8b4d496ffad91120a205b440840ebe6b authored over 9 years ago