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

clockadj: remove useless clockid parameter.

The clockid parameter to the function to get the system clock's maximum
adjustment is redundant,...

1f2c9de98217ac89d0715d24dc166b194c7d7ef3 authored almost 12 years ago
clockadj: make Doxygen comment by using two stars.

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

4a6ef24fef5161de018a63deb47ae1e46d383c38 authored almost 12 years ago
ptp4l: Use poll() instead of a try-again loop

This patch modifies sk_receive in order to use poll() on POLLERR instead of the
tryagain loop as...

76e10e95fbe14e2758fc4393eef5141734b32cce authored almost 12 years ago
Apply utc offset correction even when free running.

When using software time stamping and a free running clock, the
statistics appear to be off by t...

2ec3829bd45c47f7382d2e3e5739f5c9df9cba76 authored almost 12 years ago
Fix compiler warnings with -O2.

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

fce0aa0a2f06b24f241ead2e74475ea8874394b6 authored almost 12 years ago
ptp4l: Read system clock maximum frequency adjustment.

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

f8563452a82b0690a838b493719eb99f559d1c3f authored almost 12 years ago
ptp4l: Set clock frequency on start.

Due to a bug in older kernels, frequency reading may silently fail and
return 0. Set the frequen...

da347d7a36f2c0c213fda336eb40720d0eefc99b authored almost 12 years ago
Let a slaved port update the time properties on every announce message.

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

9ee5c1fb8e006d0b0bd3c586aefd6f1e7209e761 authored almost 12 years ago
Add a clock method to update the time properties data set.

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

1c4f99a0c3c845ee52999377a12c80c63495d6a3 authored almost 12 years ago
Distinguish between ignored and malformed packets

When there is a peer speaking PTPv1 in the network we want to silently ignore
the packets instea...

0367bb5f1bd2ad6f6764928b61bd1b8bb7240ead authored almost 12 years ago
phc2sys: add help messages for -l, -m and -q

This patch adds help messages for -l, -m and -q options.
Also it swaps -h for -v because ptp4l's...

5d7e1b0f183a7bf3f6c7a0ac09bc45e876ec5772 authored almost 12 years ago
Enable LOG_MIN_PDELAY_REQ_INTERVAL management request

Why don't you enable LOG_MIN_PDELAY_REQ_INTERVAL management request?

8c55817caf215363c69d29598e8f86247f156dce authored almost 12 years ago
hwstamp_ctl: explain ERANGE error better

ERANGE is used by the kernel to indicate the hardware does not support the
requested time stampi...

fb1b781413f065c4d38172aa2fadf233670ecff7 authored almost 12 years ago
Merge branch 'mlichvar_leap'

Fixed up trivial conflict in the makefile.

Conflicts:
makefile

bd28acffb3cff129d3ed04174aa17d7da6d0f6e0 authored almost 12 years ago
Add options to not apply leap seconds in kernel.

Add kernel_leap option for ptp4l and -x option for phc2sys to disable
setting of the STA_INS/STA...

4e24248a71263ea9d5c144471dbaf8b412587adf authored almost 12 years ago
Add missing conversions from tmv_t to nanoseconds.

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

09667479b889e82d71645437af86f42e2f1fc9df authored almost 12 years ago
ptp4l: Handle leap seconds.

Extend the clock_utc_correct function to handle leap seconds announced
in the time properties da...

e21af9709192acd26b468c173e022de8b9242367 authored almost 12 years ago
phc2sys: Update sync offset periodically with -w.

Modify the pmc to allow non-blocking operation. Run it on each clock
update to have the sync off...

58b1f3f37d5d0194aa28f9026eb17b3329bf26c4 authored almost 12 years ago
phc2sys: Handle leap seconds.

Update the currentUtcOffset and leap61/59 values at one minute
interval. When a leap second is d...

eb93926bc926fa8e212525ff4fb5016685fe9e60 authored almost 12 years ago
Move clock_adjtime wrapping to clockadj.c.

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

a29b1a41058ec56b971bda42315abc358225dc29 authored almost 12 years ago
Add support for FT_BAD_PEER_NETWORK

Handle reception of >=3 sequential multiple pdelay responses from
distinct peers as a fault of t...

789a5c8e37baeb7b041447419a869aca42e8aac6 authored almost 12 years ago
Rename set_tmo() to set_tmo_log(), add set_tmo_lin()

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

455ebe7d22d1fb96b8243a0867adb384a99c0216 authored almost 12 years ago
Add support for multiple fault types

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

b936d35b6dc74c7c71e969fe87da88378f8e3e4a authored almost 12 years ago
Explicitly detect and handle changes of the peer's port id by resetting asCapable and the port's nrate

This patch also changes port_capable() to reset the port's nrate every time asCapable changes
fr...

d374ad6bf7a49f70b92422b45439cd9b2bd5bcef authored almost 12 years ago
Log changes to asCapable

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

9650cb687dbb9f1dac2fdc6c74d5cf7a5de00d4b authored almost 12 years ago
Free peer delay responses and followup messages when sending a new peer delay request

If messages are not freed, it is possible (with purposely crafted traffic) to trigger
a peer del...

3cc285c6913de051db4e3aeb9192fd7ca82c5389 authored almost 12 years ago
Implement neighborPropDelayThresh check in port_capable()

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

4626487ff37e2d20e56b986a5d99f2626edd534f authored almost 12 years ago
pmc: avoid printing invalid data from empty TLVs

Also adds additional null-check to bin2str to avoid crashing on empty
messages.

Signed-off-by: ...

3a028edbc83f160e60266aa3c75b0685ad4b85db authored almost 12 years ago
Align the message buffer to eight bytes.

The 'struct ptp_message" includes a 64 bit integer field, ts.pdu.sec,
and this must be aligned t...

1ff9d0d0d25ddd3e722934a224fa88dc43446c91 authored almost 12 years ago
Add support for the log peer delay interval management request.

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

48aa6712a9b759c9e1cd5506fba1634bff7260fe authored almost 12 years ago
Add support for the delay mechanism management request.

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

9b5e37bbf849ef35036e1b2e15d4d5ab916b6d46 authored almost 12 years ago
Add support for the version number management request.

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

d30d397c2bdfd1273db518c41286a2522fab54b6 authored almost 12 years ago
Add support for the log sync interval management request.

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

06a65003f4b2722cf4c10bfb8c4f6e0ec509bc7c authored almost 12 years ago
Add support for the announce receipt timeout management request.

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

d2f8bc5e3863fb2cea1d99939eb2eb50e245bc5e authored almost 12 years ago
Add support for the log announce interval management request.

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

555c42e3d029ca5dcdb0891c1492241f375ec6b6 authored almost 12 years ago
Add support for the timescale management request.

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

2044d045b42b4c37017a8efc840e89aff13fbf55 authored almost 12 years ago
Add support for the traceability management request.

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

4dfcca733ba297e5ff02f560f7beb0396428c0bd authored almost 12 years ago
Add support for the clock_accuracy management request.

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

32c8635aefe545c6b97913520d947f1c6ebd84e3 authored almost 12 years ago
Add support for the slave_only management request.

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

78e37ebf0beec65d99d4368dae03b806a5ba0345 authored almost 12 years ago
Add support for the domain management request.

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

bed1067d2b3087fa6a713c9fe1fcae03871fe2d7 authored almost 12 years ago
Add support for the priority2 management request.

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

8cc3a1f3b8bca5ce388e601db75be033f3315cfd authored almost 12 years ago
Add support for the priority1 management request.

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

f0c0f7b1219a6075970e303b763a3b83dae15bf3 authored almost 12 years ago
Add an all purpose, single byte management TLV.

Many of the single field management messages have just two bytes, one for
the data value and one...

49699c783080462f39d064cce7b3fb5234bdf69a authored almost 12 years ago
support GET CLOCK_DESCRIPTION and USER_DESCRIPTION mgmt messages

Signed-off-by: Geoff Salmon <[email protected]>

36a5921e884b26108080c312a48b1f75f6e6f67b authored almost 12 years ago
adds CLOCK_DESCRIPTION struct

Modifies existing structs changing Octet *foo -> Octet foo[0] and
marks them PACKED so the messa...

e9199719056f83f3df298aad0e6e449d74b1726d authored almost 12 years ago
support TLVs with flexible size

These flexible TLVs don't need to be represented as a single packed
struct directly in the messa...

f4e8f5be3fc9f7d013b6bd4c673d1bbcef07c052 authored almost 12 years ago
pmc: get CLOCK_DESCRIPTION and USER_DESCRIPTION

Signed-off-by: Geoff Salmon <[email protected]>

e4f14504163e729499367cd0981839d2b1c982dc authored almost 12 years ago
Version 1.1

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

09f8fe0e0b1225c9b2bd47d807dd6a7892a0732b authored almost 12 years ago
avoid hton conversion on empty management msgs

Signed-off-by: Geoff Salmon <[email protected]>

a299ca1e9074f175f0a8efa9c4e54228345f22d2 authored almost 12 years ago
Check shift used in freq_est and stats max_count calculation.

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

c54714583408c5361dd6e8396b50000c8cf6844f authored almost 12 years ago
Change stats max_count variables to unsigned.

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

7d8f31da45fe30c5a53efee4c8ae1454d5b44df5 authored almost 12 years ago
set length of ptp text defaults

Signed-off-by: Geoff Salmon <[email protected]>

fd27f9904533ebb44fbb0022432365c5e9474a2c authored almost 12 years ago
Reduce the arguments to clock_create.

New clock options should go into 'struct default_ds' so that we can avoid
growing clock_create i...

1ce90fe1603a2db9cdc11cf381574f4900e4bdd9 authored almost 12 years ago
Add summary statistics.

Add new options to ptp4l and phc2sys to print summary statistics of the
clock instead of the ind...

3136e3e46c1c2e91c97c5a80dcd425745c5ef9d8 authored almost 12 years ago
Make the counters for the frequency and rate estimators unsigned.

These are simple 'up' counters.
There is no need for negative values here.

Signed-off-by: Richa...

c7098364f28cca0e17070f3f46b896c02e09ddcf authored almost 12 years ago
match pmc_send_get_action's definition and declaration

Signed-off-by: Geoff Salmon <[email protected]>

5b8e169486d1e389328402b94225bb945091f062 authored almost 12 years ago
Change label of frequency offset.

Change the label of the frequency offset in the clock messages printed
by ptp4l and phc2sys from...

cb5ebd9b247021d6278ac36add7d40f1309e55c6 authored almost 12 years ago
phc2sys: Print clock reading delay.

If the delay is known, print it together with the offset and frequency.
Remove the time stamp fr...

42b305478d42cd292e29340697a4ab6f9256e05a authored almost 12 years ago
Fix initialization of frequency estimation interval.

The clock_sync_interval() function is called when logSyncInterval
changes from zero. Call it als...

1e9db8b8ddaaa7c01f29d077fb12f9bd4363bed2 authored almost 12 years ago
Update port state strings.

Update the order of the strings to reflect the changes made by commit
f530ae93331f878afdeb611bff...

5e228657282bfcf15d1b285ef1f1ffe5b3052f4e authored almost 12 years ago
Check sample time stamps in drift calculation.

Before calculating the clock drift in the PI servo, make sure
the first sample is older than the...

5667ab5d304319ce41e7e4ddf8b4cdc616cf6221 authored almost 12 years ago
Update comment in pi.c.

This was missed in commit d8cb9be46a225a159168581531d401fa2eff8c68.

Signed-off-by: Miroslav Lic...

f0a86e7d8f9ceccedbab94ff5983259eb349df21 authored almost 12 years ago
Remove trailing whitespaces.

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

9e7517a31aaee92e9fc79602756e6ddcee1d63fd authored almost 12 years ago
Move Unix domain sockets to /var/run.

According to FHS, /var/run is the right place for them.

Signed-off-by: Miroslav Lichvar <mlichv...

ecbbf4cdb1d6e332c69290bdf624502b1c879b6a authored almost 12 years ago
Print messages with level below LOG_NOTICE to stderr.

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

a41e9f8c8c5d7c379389dfa497c0470849aa74de authored almost 12 years ago
phc2sys: Open PPS device sooner.

Possible error messages should be printed before waiting on ptp4l.

Signed-off-by: Miroslav Lich...

11fa1915059d37fdfd31df27b88f34ab35ffcac1 authored almost 12 years ago
phc2sys: Use printing facility.

Use pr_* functions to print messages and add -m, -q, -l options to allow
configuration of the pr...

158daa697d2cdb62104082dd5d1654aabe5d57f9 authored almost 12 years ago
phc2sys: Add option to set step threshold.

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

09fdc45220110d29e6952b3ba0190c6889db8557 authored almost 12 years ago
pmc: Allow commands on command line.

Add a batch mode, where the commands are taken from the command line
instead of the standard inp...

7f760ceac8655c150b9f46987ef6a9091cf724fc authored almost 12 years ago
Send peer delay requests continuously in P2P mode.

When a port makes a transition from one state to another, it resets all of
the message timers. W...

6dc1b90306989c02ac6c9c54cbdeea3d244198a6 authored almost 12 years ago
send errors if mgmt tlv length doesn't match action

It's especially important to check that SET messages aren't empty.

Signed-off-by: Geoff Salmon ...

f8be779f28d98b3a819102c8b68ca283073a2a42 authored almost 12 years ago
adds stub clock/port_management_set functions

Signed-off-by: Geoff Salmon <[email protected]>

507bee9e7330702242e9418e765cd37bf1bc9e37 authored almost 12 years ago
send NOT_SUPPORTED errors for all unhandled, known management IDs

Now that there are clock/port_management_set functions, the IDs that
GETs are handled for, like ...

3921557672dda12615d0b5c0196a70f509f73d68 authored almost 12 years ago
send UNKNOWN_ID error for unknown management TLVs

Signed-off-by: Geoff Salmon <[email protected]>

0e497b9a45ffa682365ede52466dd01ce446f737 authored almost 12 years ago
fixes typo port_managment_error -> port_management_error

Signed-off-by: Geoff Salmon <[email protected]>

d5af4196fc88e0b33d8851a1c30718ec6983adcc authored almost 12 years ago
factors out functions for sending mgmt errors from clock and port

Adds port_management_send_error and clock_management_send_error to
avoid repeatedly checking the...

1500605ff5125106427b26d73c415bd484f5b0d5 authored almost 12 years ago
Add a coding style document.

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

89562f06fee6beb2af724be4fc3c891dd7c522dd authored almost 12 years ago
Hide the grandmaster port state.

There really is no such state, but there probably should have been one.
In any case, we do have ...

f530ae93331f878afdeb611bffce85b99f6636fb authored almost 12 years ago
adds static_ptp_text and functions for setting PTPText and static_ptp_text

static_ptp_text is like a PTPText that includes space for the text
which makes it more convenien...

68b4678f7b6425cb47ea8503dbd61b5f7b6a37e0 authored almost 12 years ago
config clock description

Signed-off-by: Geoff Salmon <[email protected]>

1e77af6d21389950575fb5132f3cb86e33ec5beb authored almost 12 years ago
adds clock description

Adds struct containing clock description info that will be needed for
USER_DESCRIPTION and CLOCK...

09c2d1a6529fc5b2332e3746372c5e23cfd1d782 authored almost 12 years ago
Move some pmc code to separate file.

Move some code which can be shared between PTP management clients to
a new file.

Signed-off-by:...

cbc1a70c2cc7a751c0c106799bbb491726fa37e1 authored almost 12 years ago
phc2sys: include PTP management client.

Add a new option to wait for ptp4l to be in a synchronized state.
Periodically check PORT_DATA_S...

74692bb1b0156b6c6a6f655c1a65f7ee69a8ba14 authored almost 12 years ago
Set program name for print().

The printing facility is used by different programs, allow to set the
program name which prefixe...

d28f7721de44fd3a499e2ba53d3cbdbc1df87d5f authored almost 12 years ago
Merge the branch with the 'asCapable' support.

Conflicts:
port.c

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

4f866b2761a98f49cdd25b6dcdbf366d4cd3a5a1 authored almost 12 years ago
Stop handling file descriptor events after a port reset.

If the port resets itself after detecting a fault, then the polling events
for that port are no ...

0dbdd9c2cd761363bf05e2681f2f81b484038835 authored almost 12 years ago
Make the fault reset interval a per-port configuration parameter.

A timeout of 15 seconds is not always acceptable, make it configurable.

By popular consensus, i...

da594e78d9692596347131583a9576ba1ee9dc75 authored almost 12 years ago
Fix fault-clearing timer being erroneously re-armed

Arm the fault-clearing timer only when an event causes a port to change state
to PS_FAULTY. Prev...

eec07ae24092517ba35e366b8629468fc9de66a4 authored almost 12 years ago
Introduce a test for running in 802.1AS mode.

We use the follow_up_info to control behavior that is specific to the
802.1AS standard. In sever...

90f791d88191d5a6974481560e94187979594e33 authored almost 12 years ago
Add another Intel driver into the driver support matrix.

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

b9aae07f8712216cc9aae5988f95721b16cc0b09 authored almost 12 years ago
Start P2P messages right away when listening after initializing.

Because of an oversight in the event code, a port will not send peer delay
request messages whil...

a1cd223962d4294bcfacc3d580ea0778111ec0bc authored almost 12 years ago
Add a default of 'incapable' for 802.1AS mode.

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

ea833f3d6b540f577564d04093901e075300a0ce authored almost 12 years ago
Add port logic for the 'capable' flag from 802.1AS.

This commit only provides helper functions that will implement the effect
of a port being not ca...

ad8a197a0b59ade037f3247e03909dc1cc772306 authored almost 12 years ago
Let a port become 'capable' according to 802.1AS.

This patch implements the capable flag as follows.

1. After calculating the neighbor rate, we a...

285b88ade4b3c6236966670e5898a4d344dc6559 authored almost 12 years ago
Check that TLV length is correct when receiving TLVs.

The function, tlv_post_recv, and the functions it calls don't check
the length of the tlv before...

533c77115a6a763136073719338ca84e10b3402f authored about 12 years ago
Add missing documentation for msg_post_recv.

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

d666149e91b227605680b016d63ea914aa01ccfb authored about 12 years ago
phc2sys: read PHC with each PPS sample.

In the PPS loop, instead of setting the system clock from the PHC only
once on start, read PHC w...

c5ce4ef764ee1207a456326aa375ccad1f2ca497 authored about 12 years ago
phc2sys: allow PPS loop only with system clock.

The PPS time stamps are always made by the system clock, don't allow
running the PPS loop with o...

24a1a6a81ea530e9cf65ebf8226520739bd3df00 authored about 12 years ago
phc2sys: remove unnecessary clock step with non-PPS loops.

With non-PPS loops let the servo make the inital correction. Move the
code to the PPS loop and c...

f09b4bb7e3eed877cc564446bb73dc524223dd8e authored about 12 years ago
Fix initial drift calculation in PI servo.

Convert the calculated drift to ppb and also clamp it.

Signed-off-by: Miroslav Lichvar <mlichva...

8a23bf1d661a399409cc9546798a5d8140da6285 authored about 12 years ago