Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
Network Time Foundation
Collective -
Host: opensource -
https://opencollective.com/network-time-foundation
- Website: https://www.nwtime.org
- Code: https://github.com/nwtime
Up until now, the code has always fetched the time stamp immediately
after transmitting a messag...
Now that we have a helper routine to find the suffix, use that instead of
open coding the same l...
Originally the 'event' parameter to transport_send() was a single
Boolean flag. Over time, we g...
Signed-off-by: Anders Selhammer <[email protected]>
github.com/nwtime/linuxptp - b36142cb5176bb81ea05e7cdbc748410afa13447 authored almost 7 years agoSigned-off-by: Anders Selhammer <[email protected]>
github.com/nwtime/linuxptp - da7bc1db1ecc865361efda9f9fb888db80cda08e authored almost 7 years ago
When compiling with "-O1 -D_FORTIFY_SOURCE=1", gcc throws a false positive
warning. The code is...
The PortAddress structure has no space for the actual address and should
be used only as a point...
The make install target tries to install a man page that does not
exist. This patch fixes the m...
When computing the next port state based on a FSM event, much of the logic
will stay the same fo...
This paves the way to allow different implementations for the upcoming
Transparent Clock code.
...
github.com/nwtime/linuxptp - c17040582219e7be88abdfece67bf36c89f3c4e2 authored almost 7 years ago
Instead of using a hard coded algorithm, let the caller provide the
function that performs the c...
This patch places the internal port data structure into a common header
for use by the original ...
This will allow adding alternative algorithms as defined in PTP profiles.
Signed-off-by: Richar...
github.com/nwtime/linuxptp - ec33010f56c675256511e1e63d45bf0773581fca authored almost 7 years agoThis code will be shared by future alternative algorithms.
Signed-off-by: Richard Cochran <rich...
github.com/nwtime/linuxptp - dc1b7c66c6a75b2e93086801f272ef00509e8d53 authored almost 7 years ago
This patch makes a number of subroutines into global functions in order
to share code with the T...
This will allow adding alternative algorithms as defined in PTP profiles.
Signed-off-by: Richar...
github.com/nwtime/linuxptp - b05991dbb85f2f60051f06581f9280b90cf18420 authored almost 7 years ago
The logic that adds TLVs to the end of a message mixes up the 'L'
length in "TLV" with the total...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - d8a9591dac6da87190f3e223d1ef87e433401182 authored almost 7 years ago
Valgrind complains about memory leaks, none of which are serious. This
patch frees the allocati...
We will want to use this macro in more than one source file. This patch
moves the macro into th...
Valgrind is complaining that the pmc program is using uninitialized
data. Actually the data are...
The 1588 standard defines one step operation for both Sync and
PDelay_Resp messages. Up until n...
Up until now, one step operation was controlled by a combination of
options, namely time_stampin...
On the transmit path, the port-level code calls msg_sots_missing()
directly, but on receive this...
I stumbled across a kernel commit that fixes the macro that convert
between file descriptors and...
Make the log output a bit more clear by changing how we inform the user
when the local clock is ...
[ RC: - Add new flag into usage message.
- Fix up coding style of the automatic variables....
[ RC - Correct the punctuation and abbreviation. ]
Signed-off-by: Peter Schneider <[email protected]...
github.com/nwtime/linuxptp - c4e58792339813925e7554b3ad08e4ee9f1aa6b8 authored almost 7 years ago
pmc_create() calls transport_create(), which sets the open function
for the interface 'iface' to...
We always but braces around 'if' blocks.
Signed-off-by: Anders Selhammer <anders.selhammer@est....
github.com/nwtime/linuxptp - 9320f768e22b1aac72f4fa42d9492fde57af1379 authored almost 7 years ago
In a ptp unaware network (like the telecom profile for frequency sync
G.8265.1), both the RTD an...
Convert a hardware timestamp to the internal tmv_t representation at
the earliest possible oppor...
The function ts_to_Timestamp() is now just a wrapper around
tmv_to_Timestamp(). Simplify code b...
Signed-off-by: Michael Brown <[email protected]>
github.com/nwtime/linuxptp - 1e19ce204a1f1ab2e2ae704c21a9a4c7b14f217c authored almost 7 years ago
The function ts_add() currently performs open-coded manipulation of a
struct timespec instead of...
The function ts_to_timestamp() currently performs open-coded
manipulation of a struct timespec a...
The function clock_check_ts() performs open-coded manipulation of a
struct timespec instead of u...
Convert a software timestamp to the internal tmv_t representation at
the earliest possible oppor...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - d89d26d618c614e7f991e636cbf140d204b4f5b8 authored almost 7 years ago
The file, pmc.c, contains utility functions for printing out a port address
structure. We will ...
This patch adds a new "NSM" program. The new code handles only one
outstanding NSM command at a...
When NSM is enabled on a given port, that port always replies to a NSM
delay request with a dela...
The port will need to send unicast Sync messages in order to support
the NSM protocol. Besides ...
This will be needed in order to generate a TLV for the NSM protocol.
Signed-off-by: Richard Coc...
github.com/nwtime/linuxptp - 7a2013360a72fddcceef26bee037ba57206f6eef authored almost 7 years ago
This patch adds support for packing and unpacking the NSM TLVs. In
addition, it introduces macr...
The current code uses an ad hoc method of appending TLVs. When
constructing a message, the code...
In order to support multiple TLVs, the transmit code must be able to
append one TLV after anothe...
This patch changes the receive message parsing code to place each TLV
into the list. A method i...
The NetSync Monitor protocol will require us to report the time stamp of
the last synchronizatio...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - b6fa8e20eea7a1366d8f3e991c062ac101c7e44e authored almost 7 years ago
In order to support multiple TLVs per message, a list is needed.
This patch adds the list to the...
The NetSync Monitor protocol features a TLV with a length of zero.
Our input message parsing ass...
As part of the NetSync Monitor protocol, the port will need to have
access to the current data s...
Path trace TLVs and Follow-Up info TLVs might be mixed in among other
random TLVs. This patch f...
All users have been converted to the TLV list, so remove the field.
Signed-off-by: Richard Coch...
github.com/nwtime/linuxptp - ecb5fa8ffbc13ea8bddc055d6c37c203f3504ba8 authored almost 7 years ago
Now that the list is in place and is used on all transmit paths, simply
iterate through the list...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - c8d9d05e7a3b7b30dae6dd4bea0925162c8d8e33 authored almost 7 years ago
The third parameter of the function, pmc_send(), is never used. This patch
removes it.
Signed-...
github.com/nwtime/linuxptp - e09d3a4aea86ee2905e0384e6c04b1b6c10194ae authored almost 7 years agoThis will be needed in order to support the NetSync Monitor protocol.
Signed-off-by: Richard Co...
github.com/nwtime/linuxptp - 9d48046e95231abe65362de10d014543d4bbcb71 authored almost 7 years ago
Enforce the use of the tmv_t wrapper functions by converting tmv_t
from an int64_t to a struct c...
Use tmv_dbl() to obtain the floating point value passed to
stats_add_value() rather than relying...
Signed-off-by: Michael Brown <[email protected]>
github.com/nwtime/linuxptp - 12c9805eaba640e523ab0d7258d45a461f048bfe authored almost 7 years ago
Time values are compared using an inequality test in mmedian.c
Generalise tmv_eq() to tmv_cmp() ...
Signed-off-by: Michael Brown <[email protected]>
github.com/nwtime/linuxptp - ea82ae6c284f2aa7848029958768e694cdefe8d4 authored almost 7 years agoSigned-off-by: Michael Brown <[email protected]>
github.com/nwtime/linuxptp - 5df2779ef00d009a18381434c6c46e3af245486f authored almost 7 years agoSigned-off-by: Michael Brown <[email protected]>
github.com/nwtime/linuxptp - 288810bb3679dc1b4775024b2a2b0b22e79ca0d6 authored almost 7 years ago
The sign of time values is tested in tsproc.c. Add an abstraction
tmv_sign() to return the sign...
We always but braces around 'if' blocks.
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - d34d253fb47e30a97b920a67739c1877be33760c authored almost 7 years agoWe indent with tabs, not spaces.
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 201abc9b95f0342ab94790a750bdfe82930eae33 authored almost 7 years agogithub.com/nwtime/linuxptp - 3870bc1c5bac318c32908d4f25056c3f9bc7346f authored almost 7 years ago
The code uses a local variable for program flow control in a silly way.
This patch simplifies th...
We are programming C, not Java, and so opening braces of a function
belong on a line all by them...
The code uses a local variable for program flow control in a silly way.
This patch simplifies th...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 8ecdedaa69bd4045a3fe6ee82e3f097670e19487 authored almost 7 years agoRe-arrange local variables into a more legible reverse Christmas tree.
Signed-off-by: Richard C...
github.com/nwtime/linuxptp - 0a726b4390b030db2b22fa533c815588a0374dbb authored almost 7 years ago
Valgrind is nagging us, saying we pass uninitialized data through a
setsockopt() call. This pat...
Any code that wants to call one_step() needs to link with the static
global 'assume_two_step'. ...
Up until now the transportSpecific field has been treated according to
802.1AS, namely as a fiel...
This option allows the clock to be updated before the path delay is
measured in order to speed u...
When a network interface doesn't support the most specific PTP filter
(e.g. it can timestamp eit...
When the minimum delay request interval is changed after processing a
delay response, update the...
The UDS port is not expected to be used by PTP clocks and forwarding of
management messages to t...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - dacf9dcd240e3e357ea7d26e710dc7c80de09de7 authored about 7 years agoAdd description about bond interface.
Signed-off-by: Hangbin Liu <[email protected]>
github.com/nwtime/linuxptp - 5ce04f9bf366c6d62db5344a6553f87a99ea52ff authored over 7 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
github.com/nwtime/linuxptp - 18daeb6b263b90cf1a3ebb790df4ca60d930799c authored over 7 years ago
Because our interfaces include UNIX domain sockets, we are using
UNIX_PATH_MAX of 108 bytes for ...
When parsing the argument, the minimum value should be -DBL_MAX instead
of DBL_MIN, which is the...
The previous function use general message and will dump all interfaces'
information. Now update ...
Signed-off-by: Hangbin Liu <[email protected]>
github.com/nwtime/linuxptp - 7e294a4d047654f746c3fcdff7bce512be149e37 authored over 7 years ago
When the clock device or phc index changed, the new phc device may have
different maximum adjust...
We also need this part in clock_reinit() later. So split it out of
function clock_add().
Signed...
github.com/nwtime/linuxptp - cb53238d5d1a1b9319536b4df1edf237e428d931 authored over 7 years agoSigned-off-by: Hangbin Liu <[email protected]>
github.com/nwtime/linuxptp - 7092db303028d84574138c8199375dfde0b4e232 authored over 7 years ago
Update function rtnl_link_status to get bond slave info. Pass the slave index
to call back funct...
Pass struct interface so we can use ts_iface in HW filter.
Signed-off-by: Hangbin Liu <liuhangb...
github.com/nwtime/linuxptp - 8923bcdf64c0c95bac7af977b867393bae69e7a1 authored over 7 years ago
Now the ts label will be either the bond active slave or the interface
name, which is the exactl...
Separate required_modes setting from clock_create so we can obtain the
required time stamping fl...
Besides link up and down, we may also receive other rtnl messages, like
bond slave changed info,...
Signed-off-by: Hangbin Liu <[email protected]>
github.com/nwtime/linuxptp - 6d1e2a62bdb4f6353e3a9006f2d603031f4648e6 authored over 7 years agoAdd new element ts_label in struct interface to track real ts interface.
Signed-off-by: Hangbin...
github.com/nwtime/linuxptp - 9e744d9e8a2dab6ec0ea5ece5ac25e7384264575 authored over 7 years ago
When the master clock changed its state and then changed it back to the
original state before ph...