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
This fixes an issue with free running clocks. When the master clock id
changes the measured mast...
Don't require each port to have its own master table specified in the
config. Instead of ports c...
A single, external PTP Hardware Clock device may be wired to one or more
MAC devices, providing ...
When synchronizing a PHC to the Linux system clock (CLOCK_REALTIME),
the phc2sys uses the sysoff...
The sysoff_measure() function gained an additional parameter some time
ago, but the legacy metho...
In port_synchronize(), when the clock returned SERVO_UNLOCKED and
port_dispatch() triggered a sw...
[RC: Fix two more bad goto labels. ]
Signed-off-by: Miroslav Lichvar <[email protected]>
Sign...
TLV_PORT_PROPERTIES_NP carries, among other attributes, a timestamp type
used for that port. In ...
TLV_PORT_PROPERTIES_NP messages serve for querying of port properties, such
as timestamp type an...
In commit 2b5bec8d2740 ("pmc: Add a new TLV to obtain per-port
statistics"), pmc gained a new TL...
mc6_addr holds the parsed multicast address to which messages should be sent.
But since each por...
Add struct PortStats to keep per-port number of messages sent and received,
split by message typ...
Add an ability of pmc to query per-port stats added in the previous patch.
Signed-off-by: Petr ...
2b5bec8d2740c5f466aa423ae3710d812d5b16f8 authored over 5 years ago by Petr Machata <[email protected]>
The two programs, phc2sys and phc_ctl, use nearly identical subroutines to
open an instance of a...
The order of the options list has gone a bit astray. This patch
restores the ordering.
Fixes: ...
46b673792ac01036d5d8345b31dd1761eaef5cf3 authored over 5 years ago by Richard Cochran <[email protected]>ptp4l -f default.cfg complains:
unknown option inhibit_pdelay_req at line 41 in global sectio...
68337acd10b030f3c46111ba7e7b4624e4609cf9 authored over 5 years ago by Vladimir Oltean <[email protected]>Signed-off-by: Hubert Feurstein <[email protected]>
f2aac1b30ebf65e689a25b313664db4e26841a75 authored over 5 years ago by Hubert Feurstein <[email protected]>
Users may need to use different socket priorities for ptp4l traffic for
the purpose of traffic s...
struct hwtstamp_config.rx_filter passed to SIOCSHWTSTAMP can be updated by
the kernel with the v...
Add a man page for the nsm program based on the pmc man page.
Signed-off-by: Miroslav Lichvar <...
3962f638410dd51cc3ab897d641470f85a4154f1 authored over 5 years ago by Miroslav Lichvar <[email protected]>Signed-off-by: Miroslav Lichvar <[email protected]>
40e5868e66c9a2d26ff37508a115865762b55ba2 authored over 5 years ago by Miroslav Lichvar <[email protected]>
Set the announce, sync and delay request intervals in the example
configs per the G.8275.1 and G...
This patch add team interface activebackup mode support. As linux team use
genl netlink message,...
Add provision to disable delay requests. Designated masters who do not
need to calculate pdelay ...
This commit adds functionality to increase the sync and pdelay request
intervals once gptp synch...
Make servo and it's current state available outside clock.c
Signed-off-by: Vedang Patel <vedang...
78b4b780da5589eb4e2a69bc7c322b3a81c68daf authored over 5 years ago by Vedang Patel <[email protected]>
It will be used to store the current value of Pdelay Request Interval.
It will be represented as...
This implements transmission and receipt of message interval requests.
Using this mechanism, a t...
Make port_signaling_construct() to create a generic signaling
ptp_message. Move the unicast spec...
Make sure port_capable() can be accessed by the signaling construct in
port_signaling.c
Signed-...
705e5a32faf20c1ca4595840ae486d71d422aa58 authored over 5 years ago by Vedang Patel <[email protected]>
IEEE 1588 specifies dropping signaling messages if the
targetPortIdentity does not match the rec...
Ever since commit d88b4ff2298b ("util: Added IPv6 support in help
funtions addreq and str2addr")...
Signed-off-by: Miroslav Lichvar <[email protected]>
86723cfc6a7ac1d9b1bff5e90b7f4696d6460a0e authored almost 6 years ago by Miroslav Lichvar <[email protected]>
In logic, when we want to switch phc, we should check if the new phc
index is valid instead of c...
The manpage for recvmsg says -1 will be returned on error, Zero indicates an
"orderly shutdown",...
Fix the length of compared data to be the size of the IPv4/IPv6 address.
Signed-off-by: Mirosla...
dd30b3a0d94d1c087066066e5df6bc84e3019b0b authored almost 6 years ago by Miroslav Lichvar <[email protected]>
Commit c8107c8d ("config: Add a configuration option for TC mode.")
added a new TC mode. An ear...
Now that PTP support support is well established, remove the text that
attempts to explain the (...
Signed-off-by: Richard Cochran <[email protected]>
47a4fd040b98243a4e8da3b6ac1d52b71c5a4be3 authored almost 6 years ago by Richard Cochran <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
36624a43457255c95ce7f54efc71532ae3520dae authored almost 6 years ago by Richard Cochran <[email protected]>
Adjust checks of logMessageInterval in received packet to prevent 1 of
type int being shifted by...
The kernel supports different PTP_SYS_OFFSET* ioctls. Use the sysoff
enum to allow selecting bet...
This fixes valgrind errors.
Signed-off-by: Miroslav Lichvar <[email protected]>
c0e49c708814ec783726fe92202371847703c5ed authored about 6 years ago by Miroslav Lichvar <[email protected]>
This ioctl uses cross timestamping for a more accurate measurement of
the offset. It is supporte...
This is a more accurate variant of the the PTP_SYS_OFFSET ioctl, which
will probably be supporte...
A clock that cannot be adjusted has no servo. Check if a servo is
present before updating the cl...
If synchronizing a PHC to the system clock, use one of the
PTP_SYS_OFFSET ioctls (if supported) ...
Added check so that convertion from a positive tmv not result in a negative TimeInterval and vic...
14ac29b059865de61097f296d7e272d3eb8a30fc authored about 6 years ago by Anders Selhammer <[email protected]>net_tstamp.h in recent kernel versions requires time.h for clockid_t.
Signed-off-by: Miroslav L...
d663a483c40939bad58301c256d86da1f3da6cc0 authored about 6 years ago by Miroslav Lichvar <[email protected]>Signed-off-by: Anders Selhammer <[email protected]>
1a4f6a26ce174db070a37d555e21d4efef7ab7ce authored about 6 years ago by Anders Selhammer <[email protected]>
I have reduced the requirements for the -p option to accept
any type of device. With this it sho...
When inhibit_announce is set, ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES event is
still sent once every st...
The "inhibit_announce" and "ignore_source_id" options were introduced
in order to support the au...
Change-Id: I64cf1d4e1728c31ced40aff865d66b5b4356560f
Signed-off-by: Cliff Spradlin <cspradlin@go...
Signed-off-by: Anders Selhammer <[email protected]>
80b1d25dfd6cfc1ad24fec1d2adee7aa6dead6f7 authored about 6 years ago by Anders Selhammer <[email protected]>Signed-off-by: Anders Selhammer <[email protected]>
d88b4ff2298b9b6588e03fe94c2e7c0263fb4750 authored about 6 years ago by Anders Selhammer <[email protected]>
Signed-off-by: Cliff Spradlin <[email protected]>
Change-Id: If0fd08df74e1cf108978266cd77768d...
Correction of fault introduced in "Add BMCA config option."
Signed-off-by: Anders Selhammer <an...
8f2f9bbcabd2f0381dc7dcbc9d947e0178c71d6b authored about 6 years ago by Anders Selhammer <[email protected]>
This scenario will only be encountered when the clock transitions to the
slave state without kno...
If foreign clock is NULL, both the clocks are obviously not equal. So,
return 0 in that case.
T...
4910055bd7b426c0be50945c3c7b9007379aad90 authored over 6 years ago by Vedang Patel <[email protected]>
This adds config option to specify static roles for master and slave
in the Best Master Clock Al...
This config option will skip the source port identity verification in
the Sync and Follow_up mes...
If set to 'true', this unconditionally sets the asCapable variable. The
usual checks will be app...
This option will accomplish 2 things. On the master, it will stop the
announce messages being se...
This commit adds example for configuring master and slave devices that
support features from the...
Don't postpone processing of a timeout if it is equal to the current
time. This prevents an infi...
Remove > from beginning of lines specified in the *.conf sections in
order to allow a ptp4l-spec...
Signed-off-by: Ethel Nilsson <[email protected]>
2b006082789aef176eaac25344b19ef88b1ded63 authored over 6 years ago by Ethel Nilsson <[email protected]>
Currently the clockIdentity is generated from the mac address of the first
interface/port in con...
Add attribute maxStepsRemoved which is included in IEEE1588-2017 (v2.1)
It is an optional attrib...
Add global option for the hardware time stamp setting.
The function could:
Normally set the filt...
General function to use for sending signals for data collection
from ptp4l program.
Signed-off-...
1d0832b2f50d8f3a1a67f8cc5ba2390d8f1e7a63 authored over 6 years ago by Anders Selhammer <[email protected]>
The sub agent use net-snmp library and AgentX protocol for the
communication towards the snmp ma...
UDS transport is configured using pmc_common functions.
Signed-off-by: Anders Selhammer <anders...
68dcd10673ba5bca0d6d6976e4253ae5e7bf8d68 authored over 6 years ago by Anders Selhammer <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
059269d0cc50f8543b00c3c1f52f33a6c1aa5912 authored over 6 years ago by Richard Cochran <[email protected]>
In port_management_fill_response() the TLV descriptor leaked when
not responding.
In port_open(...
47971bdd50d234305cce95da5a544a4f3b8d0f2f authored over 6 years ago by Miroslav Lichvar <[email protected]>Two warnings were observed with gcc-8.1.1.
Signed-off-by: Miroslav Lichvar <[email protected]>
d08bee277129e05bbaf66d2168532e718746c91b authored over 6 years ago by Miroslav Lichvar <[email protected]>
When using peer to peer one step mode, the normal time stamp handling
of peer delay request mess...
The default initial value for logAnnounceInterval should be 0 (once per second).
See chapter 10....
These functions are just wrappers. Make it possible for the compiler to
optimize the calls when ...
The field is redundant with the length tlv_list. Replace it with a
function msg_tlv_count() inst...
Since commit 7fe69e7ba0c3bdce88d3a89d5ed43d0b382ef022 management
messages are dropped in some ca...
Change-Id: I4ed12f1cddcb85e8f55552ce8980a9d5f3f7d800
Signed-off-by: Andriy Kohut <andriyk@mellan...
TRUE and FALSE is also defined in net-snmp library. Without this check,
compilation and includes...
Code from pmc.c will be reused by new snmpd.c in later commit.
Signed-off-by: Anders Selhammer ...
d85c592993c64091cf3e1a0e302bc55224397ff8 authored over 6 years ago by Anders Selhammer <[email protected]>If the message is ignored, the tlv_extra isn't freed. Fix this.
Signed-off-by: Michael Walle <m...
763a7ecdb242faf5e1eeef91ee52249cd6efdff6 authored over 6 years ago by Michael Walle <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
0cb7abf703645cc3e3713d61ddf60587977a07a4 authored over 6 years ago by Richard Cochran <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
6ba73d18b1bf1facffd3746b24ea46f386b0e2fb authored over 6 years ago by Richard Cochran <[email protected]>
Now that all the pieces are in place, hook the port logic into the
unicast service code.
Signed...
b9b18268cd4cbb5dad1ffa90542616f851754fd5 authored over 6 years ago by Richard Cochran <[email protected]>
This patch adds new code that handles unicast service contracts,
sending messages according the ...
Signed-off-by: Richard Cochran <[email protected]>
8144fa754622fecc8c594051216deefc2abe0e1d authored over 6 years ago by Richard Cochran <[email protected]>Some profiles forbid multicast altogther.
Signed-off-by: Richard Cochran <richardcochran@gmail....
b1ce06206fa584a2dcc6fd997e07d89f85cc814e authored over 6 years ago by Richard Cochran <[email protected]>
There are two aspects. First, on the receive path, we reply to
unicast peer delay requests in k...
This patch adds new code that runs the state machine and handles the
TLVs for requesting unicast...
Now that all the pieces are in place, hook the port logic into the unicast
client code.
Signed-...
f71caedc57ca6bc4f6e57c37031615183784ce86 authored over 6 years ago by Richard Cochran <[email protected]>
This patch adds a new timer to be used by the server side unicast
negotiation logic.
Signed-off...
dfa9e65785441a982ce275d50fe3f8c1fec4abbe authored over 6 years ago by Richard Cochran <[email protected]>
This will be needed to keep track of multiple different deadlines
using a single timer.
Signed-...
a076fd1ce9f28ba03705c4065ee0b0e74f555352 authored over 6 years ago by Richard Cochran <[email protected]>Signed-off-by: Richard Cochran <[email protected]>
c2ab96fd407f03f96e51f0e227963beef2fa564c authored over 6 years ago by Richard Cochran <[email protected]>
This patch adds a new timer to be used by the client side unicast
negotiation logic.
Signed-off...
ffdb3f7192b3d39f1a29248491ccaf2b685c6ab9 authored over 6 years ago by Richard Cochran <[email protected]>
In order to implement client side unicast negotiation, state is needed
per port and master. Thi...