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
The clockid parameter to the function to get the system clock's maximum
adjustment is redundant,...
Signed-off-by: Richard Cochran <[email protected]>
4a6ef24fef5161de018a63deb47ae1e46d383c38 authored almost 12 years ago
This patch modifies sk_receive in order to use poll() on POLLERR instead of the
tryagain loop as...
When using software time stamping and a free running clock, the
statistics appear to be off by t...
Signed-off-by: Miroslav Lichvar <[email protected]>
fce0aa0a2f06b24f241ead2e74475ea8874394b6 authored almost 12 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
f8563452a82b0690a838b493719eb99f559d1c3f authored almost 12 years ago
Due to a bug in older kernels, frequency reading may silently fail and
return 0. Set the frequen...
Signed-off-by: Richard Cochran <[email protected]>
9ee5c1fb8e006d0b0bd3c586aefd6f1e7209e761 authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
1c4f99a0c3c845ee52999377a12c80c63495d6a3 authored almost 12 years ago
When there is a peer speaking PTPv1 in the network we want to silently ignore
the packets instea...
This patch adds help messages for -l, -m and -q options.
Also it swaps -h for -v because ptp4l's...
Why don't you enable LOG_MIN_PDELAY_REQ_INTERVAL management request?
8c55817caf215363c69d29598e8f86247f156dce authored almost 12 years ago
ERANGE is used by the kernel to indicate the hardware does not support the
requested time stampi...
Fixed up trivial conflict in the makefile.
Conflicts:
makefile
Add kernel_leap option for ptp4l and -x option for phc2sys to disable
setting of the STA_INS/STA...
Signed-off-by: Miroslav Lichvar <[email protected]>
09667479b889e82d71645437af86f42e2f1fc9df authored almost 12 years ago
Extend the clock_utc_correct function to handle leap seconds announced
in the time properties da...
Modify the pmc to allow non-blocking operation. Run it on each clock
update to have the sync off...
Update the currentUtcOffset and leap61/59 values at one minute
interval. When a leap second is d...
Signed-off-by: Miroslav Lichvar <[email protected]>
a29b1a41058ec56b971bda42315abc358225dc29 authored almost 12 years ago
Handle reception of >=3 sequential multiple pdelay responses from
distinct peers as a fault of t...
Signed-off-by: Delio Brignoli <[email protected]>
455ebe7d22d1fb96b8243a0867adb384a99c0216 authored almost 12 years agoSigned-off-by: Delio Brignoli <[email protected]>
b936d35b6dc74c7c71e969fe87da88378f8e3e4a authored almost 12 years ago
This patch also changes port_capable() to reset the port's nrate every time asCapable changes
fr...
Signed-off-by: Delio Brignoli <[email protected]>
9650cb687dbb9f1dac2fdc6c74d5cf7a5de00d4b authored almost 12 years ago
If messages are not freed, it is possible (with purposely crafted traffic) to trigger
a peer del...
Signed-off-by: Delio Brignoli <[email protected]>
4626487ff37e2d20e56b986a5d99f2626edd534f authored almost 12 years ago
Also adds additional null-check to bin2str to avoid crashing on empty
messages.
Signed-off-by: ...
3a028edbc83f160e60266aa3c75b0685ad4b85db authored almost 12 years ago
The 'struct ptp_message" includes a 64 bit integer field, ts.pdu.sec,
and this must be aligned t...
Signed-off-by: Richard Cochran <[email protected]>
48aa6712a9b759c9e1cd5506fba1634bff7260fe authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
9b5e37bbf849ef35036e1b2e15d4d5ab916b6d46 authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
d30d397c2bdfd1273db518c41286a2522fab54b6 authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
06a65003f4b2722cf4c10bfb8c4f6e0ec509bc7c authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
d2f8bc5e3863fb2cea1d99939eb2eb50e245bc5e authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
555c42e3d029ca5dcdb0891c1492241f375ec6b6 authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
2044d045b42b4c37017a8efc840e89aff13fbf55 authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
4dfcca733ba297e5ff02f560f7beb0396428c0bd authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
32c8635aefe545c6b97913520d947f1c6ebd84e3 authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
78e37ebf0beec65d99d4368dae03b806a5ba0345 authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
bed1067d2b3087fa6a713c9fe1fcae03871fe2d7 authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
8cc3a1f3b8bca5ce388e601db75be033f3315cfd authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
f0c0f7b1219a6075970e303b763a3b83dae15bf3 authored almost 12 years ago
Many of the single field management messages have just two bytes, one for
the data value and one...
Signed-off-by: Geoff Salmon <[email protected]>
36a5921e884b26108080c312a48b1f75f6e6f67b authored almost 12 years ago
Modifies existing structs changing Octet *foo -> Octet foo[0] and
marks them PACKED so the messa...
These flexible TLVs don't need to be represented as a single packed
struct directly in the messa...
Signed-off-by: Geoff Salmon <[email protected]>
e4f14504163e729499367cd0981839d2b1c982dc authored almost 12 years agoSigned-off-by: Richard Cochran <[email protected]>
09f8fe0e0b1225c9b2bd47d807dd6a7892a0732b authored almost 12 years agoSigned-off-by: Geoff Salmon <[email protected]>
a299ca1e9074f175f0a8efa9c4e54228345f22d2 authored almost 12 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
c54714583408c5361dd6e8396b50000c8cf6844f authored almost 12 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
7d8f31da45fe30c5a53efee4c8ae1454d5b44df5 authored almost 12 years agoSigned-off-by: Geoff Salmon <[email protected]>
fd27f9904533ebb44fbb0022432365c5e9474a2c authored almost 12 years ago
New clock options should go into 'struct default_ds' so that we can avoid
growing clock_create i...
Add new options to ptp4l and phc2sys to print summary statistics of the
clock instead of the ind...
These are simple 'up' counters.
There is no need for negative values here.
Signed-off-by: Richa...
c7098364f28cca0e17070f3f46b896c02e09ddcf authored almost 12 years agoSigned-off-by: Geoff Salmon <[email protected]>
5b8e169486d1e389328402b94225bb945091f062 authored almost 12 years ago
Change the label of the frequency offset in the clock messages printed
by ptp4l and phc2sys from...
If the delay is known, print it together with the offset and frequency.
Remove the time stamp fr...
The clock_sync_interval() function is called when logSyncInterval
changes from zero. Call it als...
Update the order of the strings to reflect the changes made by commit
f530ae93331f878afdeb611bff...
Before calculating the clock drift in the PI servo, make sure
the first sample is older than the...
This was missed in commit d8cb9be46a225a159168581531d401fa2eff8c68.
Signed-off-by: Miroslav Lic...
f0a86e7d8f9ceccedbab94ff5983259eb349df21 authored almost 12 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
9e7517a31aaee92e9fc79602756e6ddcee1d63fd authored almost 12 years agoAccording to FHS, /var/run is the right place for them.
Signed-off-by: Miroslav Lichvar <mlichv...
ecbbf4cdb1d6e332c69290bdf624502b1c879b6a authored almost 12 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
a41e9f8c8c5d7c379389dfa497c0470849aa74de authored almost 12 years agoPossible error messages should be printed before waiting on ptp4l.
Signed-off-by: Miroslav Lich...
11fa1915059d37fdfd31df27b88f34ab35ffcac1 authored almost 12 years ago
Use pr_* functions to print messages and add -m, -q, -l options to allow
configuration of the pr...
Signed-off-by: Miroslav Lichvar <[email protected]>
09fdc45220110d29e6952b3ba0190c6889db8557 authored almost 12 years ago
Add a batch mode, where the commands are taken from the command line
instead of the standard inp...
When a port makes a transition from one state to another, it resets all of
the message timers. W...
It's especially important to check that SET messages aren't empty.
Signed-off-by: Geoff Salmon ...
f8be779f28d98b3a819102c8b68ca283073a2a42 authored almost 12 years agoSigned-off-by: Geoff Salmon <[email protected]>
507bee9e7330702242e9418e765cd37bf1bc9e37 authored almost 12 years ago
Now that there are clock/port_management_set functions, the IDs that
GETs are handled for, like ...
Signed-off-by: Geoff Salmon <[email protected]>
0e497b9a45ffa682365ede52466dd01ce446f737 authored almost 12 years agoSigned-off-by: Geoff Salmon <[email protected]>
d5af4196fc88e0b33d8851a1c30718ec6983adcc authored almost 12 years ago
Adds port_management_send_error and clock_management_send_error to
avoid repeatedly checking the...
Signed-off-by: Richard Cochran <[email protected]>
89562f06fee6beb2af724be4fc3c891dd7c522dd authored almost 12 years ago
There really is no such state, but there probably should have been one.
In any case, we do have ...
static_ptp_text is like a PTPText that includes space for the text
which makes it more convenien...
Signed-off-by: Geoff Salmon <[email protected]>
1e77af6d21389950575fb5132f3cb86e33ec5beb authored almost 12 years ago
Adds struct containing clock description info that will be needed for
USER_DESCRIPTION and CLOCK...
Move some code which can be shared between PTP management clients to
a new file.
Signed-off-by:...
cbc1a70c2cc7a751c0c106799bbb491726fa37e1 authored almost 12 years ago
Add a new option to wait for ptp4l to be in a synchronized state.
Periodically check PORT_DATA_S...
The printing facility is used by different programs, allow to set the
program name which prefixe...
Conflicts:
port.c
Signed-off-by: Richard Cochran <[email protected]>
4f866b2761a98f49cdd25b6dcdbf366d4cd3a5a1 authored almost 12 years ago
If the port resets itself after detecting a fault, then the polling events
for that port are no ...
A timeout of 15 seconds is not always acceptable, make it configurable.
By popular consensus, i...
da594e78d9692596347131583a9576ba1ee9dc75 authored almost 12 years ago
Arm the fault-clearing timer only when an event causes a port to change state
to PS_FAULTY. Prev...
We use the follow_up_info to control behavior that is specific to the
802.1AS standard. In sever...
Signed-off-by: Richard Cochran <[email protected]>
b9aae07f8712216cc9aae5988f95721b16cc0b09 authored almost 12 years ago
Because of an oversight in the event code, a port will not send peer delay
request messages whil...
Signed-off-by: Richard Cochran <[email protected]>
ea833f3d6b540f577564d04093901e075300a0ce authored almost 12 years ago
This commit only provides helper functions that will implement the effect
of a port being not ca...
This patch implements the capable flag as follows.
1. After calculating the neighbor rate, we a...
285b88ade4b3c6236966670e5898a4d344dc6559 authored almost 12 years ago
The function, tlv_post_recv, and the functions it calls don't check
the length of the tlv before...
Signed-off-by: Richard Cochran <[email protected]>
d666149e91b227605680b016d63ea914aa01ccfb authored about 12 years ago
In the PPS loop, instead of setting the system clock from the PHC only
once on start, read PHC w...
The PPS time stamps are always made by the system clock, don't allow
running the PPS loop with o...
With non-PPS loops let the servo make the inital correction. Move the
code to the PPS loop and c...
Convert the calculated drift to ppb and also clamp it.
Signed-off-by: Miroslav Lichvar <mlichva...
8a23bf1d661a399409cc9546798a5d8140da6285 authored about 12 years ago