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
If the user has configured the appropriate option, then simply warn
about the clock device misma...
When running a "jbod" Boundary Clock, as long as we have one slaved port,
we always want the clo...
When switching clock devices in JBOD mode, we need to be able to reset the
servo. The existing s...
This patch adds a configuration option that allows running a boundary clock
using "just a bunch ...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - b295df24b50fe0d6ccf8aa224458182a926a4803 authored about 10 years agoSigned-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 53a08ec4df670e9be824f0cbff5d4f83f085655c authored about 10 years agoSigned-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 017235f8812f58785c4e5a4dff6b098fd9d7ee23 authored about 10 years agoSigned-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - ef4962938721b46c87e6fb2acfc1e4c893a26925 authored about 10 years agoSigned-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 4fb0346520dedcb22335e7b622e240037fc08b7e authored about 10 years ago
The stats for the maximum size were not reset, which caused the
the servo to reuse old data inst...
The reconfigure function is missing a check whether state for the given
clock actually changed o...
The 'cfg' passed to parse_port_setting() is never used, so just remove it.
Signed-off-by: Richa...
github.com/nwtime/linuxptp - 7144aa92632d70d1b134a64fbd54b0392bb9acd2 authored about 10 years agoSigned-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 5b36399e355914c5519c2ad6285ccf33b074d635 authored about 10 years ago
The current implementation fetches a transmit time stamp by polling on the
socket with pollfd.ev...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - a4264b3e6ee61fe4f4c84027202065120d607cbb authored about 10 years agoSigned-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 8e8a9897209f831e54c21fbc3dcef5c08fc41088 authored about 10 years ago
When adding a new port, put it at the end of the list instead of head.
This restores the order o...
Initialize all descriptors to prevent polling invalid descriptors from
faulty ports.
Signed-off...
github.com/nwtime/linuxptp - 594f59c50d1a2015bfaf5b5d1a773490ef97622b authored about 10 years ago
Commit ea7a7882 removed the calls to transport_peer(), inadvertently
substituting them with tran...
Add some functions to work with strings and arrays of pointers that will
be useful later.
Signe...
github.com/nwtime/linuxptp - 2098d7c1626e934e50da24ef4c5810a5b69064b4 authored over 10 years agoOnly reentrant functions should be called here.
Signed-off-by: Miroslav Lichvar <mlichvar@redha...
github.com/nwtime/linuxptp - aa24ba58e1901f9397624665c1f19a2432e426d0 authored over 10 years ago
The config module is used by ptp4l only, but util is shared with other
programs.
Signed-off-by:...
github.com/nwtime/linuxptp - 48046e593efc9583335632f25805153cc2ca8114 authored over 10 years ago
timemaster is a program that uses ptp4l and phc2sys in combination with
chronyd or ntpd to synch...
github.com/nwtime/linuxptp - e5f20ea6df14aecefbc4df502c30573347b96a73 authored over 10 years ago
The uds port is handled specially in almost all cases, it doesn't behave
like the rest of ports ...
The fault timer file descriptor is a per port item, put it inside struct
port where other per po...
Remove the limit of MAX_PORTS ports also when parsing command line
arguments.
Signed-off-by: Ji...
github.com/nwtime/linuxptp - 5e0196d6474ddd754ba63e047a149e6206739af7 authored over 10 years ago
For the ports to be truly created and removed dynamically, the last used
port number has to be r...
There's no need to regenerate pollfd multiple times during batches of port
operations (like crea...
Remove the limit of MAX_PORTS ports (default 8) and keep the ports in
a linked list. This allows...
Copy the address directly to struct sockaddr_in or sockaddr_in6 instead
of sockaddr as Coverity ...
Don't overwrite the last NUL with strncpy() and also replace strcpy()
with strncpy().
Signed-of...
github.com/nwtime/linuxptp - 9ddd2a60249eaf2b2a48bf9af3843fa06cf0a095 authored over 10 years ago
Instead of setting it to the PTP domain number, add a new option to
ptp4l and phc2sys to set it ...
In pmc and phc2sys handle terminating signals and close the UDS
transport before exit to remove ...
This allows running multiple phc2sys and pmc instances at the same time.
Signed-off-by: Mirosla...
github.com/nwtime/linuxptp - 1773d21f26eb1aa2da0645af116d6ce27591a9cc authored over 10 years agoThis will be useful in phc2sys and pmc.
Signed-off-by: Miroslav Lichvar <[email protected]>
github.com/nwtime/linuxptp - ca637b2067ae78c9830c38bb5e9a659255b1a4a2 authored over 10 years ago[RC: added cast to sockaddr to avoid compiler warning. ]
Signed-off-by: Miroslav Lichvar <mlich...
github.com/nwtime/linuxptp - 2423357754ae7d64d844fc064c72b8d27adf40c4 authored over 10 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
github.com/nwtime/linuxptp - 28865f91df96e83b28bb40565f12e62bd86e451f authored over 10 years ago
This is an updated version of a script I wrote a couple years ago for
debugging the PHC when wri...
Signed-off-by: Jacob Keller <[email protected]>
github.com/nwtime/linuxptp - 3e858ba17bf24589c662798e554f4051e6c25698 authored over 10 years ago
To avoid conflicts in generic names add TLV_ prefix to all TLV IDs
defined in tlv.h.
Signed-off...
github.com/nwtime/linuxptp - 70dd6823493535bc0693f45b470f8c65a8028817 authored over 10 years agoSigned-off-by: Miroslav Lichvar <[email protected]>
github.com/nwtime/linuxptp - bc84b880535a29e9b7d07c782445ac84aa8973b2 authored over 10 years ago
Always disable the clock sanity check when the ntpshm servo is used,
because it doesn't know whe...
When leap second is inserted/deleted to the reference time, adjust the
reference point as if the...
Introduce a new function to inform the servo about upcoming leap second.
This is used when the k...
After moving the leap second check away from update_pmc(), the time
stamp is used only to contro...
When synchronizing the system clock and the PTP UTC offset is valid and
traceable, set the TAI o...
This simplifies passing of pending leap seconds to the clocks and it
will also allow to apply le...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 07edab48dcfa6e28baaf54011ee19a18780d6916 authored over 10 years ago
This is a simple servo that provides the NTP SHM reference clock. It
doesn't make any clock adju...
When grandmaster does not use PTP timescale but the previous one did, we
need to reset sync offs...
Add support for subscribing to events (run_pmc_subscribe) and receiving and
handling of received...
By default, do not synchronize CLOCK_REALTIME. To do it, -r option is
needed. That will only con...
Signed-off-by: Jiri Benc <[email protected]>
github.com/nwtime/linuxptp - 1a1e02aa978f1e55e0e8694b1131276a7ba6d541 authored over 10 years ago
Make sure that we handle only one PTP clock (node). This is for an extra
safety.
Signed-off-by:...
github.com/nwtime/linuxptp - 66c9f9baaf67ab6bb42fc9ea96c789b3facdf7cf authored over 10 years agoAdd automatic configuration option (-a).
Signed-off-by: Jiri Benc <[email protected]>
github.com/nwtime/linuxptp - 46a0b281b9157392609709f989cc126191e49bef authored over 10 years ago
Recognize errors returned in MANAGEMENT_ERROR_STATUS TLV and return
a distinct value from run_pm...
Implement pmc_target_port to set a port number, leaving clock identity
unchanged, and pmc_target...
This just moves code around to have related functions together and forward
declaration at the be...
For now, only CLOCK_REALTIME can be UTC. This may stay this way forever but
now we have a clean ...
Add tracking of which ports have been added and to which clock they belong.
Signed-off-by: Jiri...
github.com/nwtime/linuxptp - 506271acac252290df5a3365c85caa02db1321b3 authored over 10 years ago
Do not call clock_open to open a clock device but let clock_add do that and
return the newly cre...
Split members that apply to all synchronized clocks and members that apply
to an individual cloc...
Split the generic (global) part of update_sync_offset and the part that
affects individual clock...
Make run_pmc usable for any kind of management message. Create wrappers for
waiting for ptp4l an...
The sanity_freq_limit field was erroneously added to the config struct
in ed379b40, the right on...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - abd433838448ccdd8e0b10664ccb3eebcff1dab6 authored over 10 years ago
This patch modifies the hwtstamp_ctl program, so that it will (attempt
to) use the SIOCGHWTSTAMP...
In order to allow hwtstamp_ctl to use the non-destructive SIOCGHWTSTAMP
ioctl, we need to add it...
Signed-off-by: Richard Cochran <[email protected]>
github.com/nwtime/linuxptp - 8a92b1292c8d60fd114207c7ebd9564d4f868752 authored over 10 years ago
This was broken in commit e804e6, ifa_addr is a pointer to sockaddr,
it shouldn't be referenced ...
Will be used by phc2sys to find out interfaces corresponding to ports.
Signed-off-by: Jiri Benc...
github.com/nwtime/linuxptp - 424bbde8fcca09a07375736c96041dd04467cbf4 authored almost 11 years ago
Split management message creation to more fine-grained functions to allow
notification messages ...
Add expiration time to subscriptions; they need to be renewed before they
expiry. This way, the ...
Notify subscribers about port state changes.
Signed-off-by: Jiri Benc <[email protected]>
github.com/nwtime/linuxptp - c8c6f7288f7f3bdfe6ff56cc05d05d95e36f8796 authored almost 11 years ago
Split management message creation to more fine-grained functions to allow
notification messages ...
This puts groundwork for event subscription and notification. The individual
events are added by...
This parameter was made obsolete by the common address refactoring.
Signed-off-by: Jiri Benc <j...
github.com/nwtime/linuxptp - d6e4173e1955a980a89cb81d2914d3d1f6536e6a authored almost 11 years ago
When phc2sys is started before ptp4l or it is interrupted before ptp4l has
a chance to reply to ...
Signed-off-by: Jiri Benc <[email protected]>
github.com/nwtime/linuxptp - d0a67e8b1a7ba3a606d2ba8600849dc0737dda2d authored almost 11 years agoSigned-off-by: Jiri Benc <[email protected]>
github.com/nwtime/linuxptp - ba577d7123d326facbc7ce5569a1f5cb10f20b60 authored almost 11 years ago
This modifies all transports to use a new common address type, struct
address. This address is s...
Also, document transport_send, transport_peer and transport_sendto usage.
Signed-off-by: Jiri B...
github.com/nwtime/linuxptp - 4df924b253dbe3dec734fba4a1d7b88f35c03df4 authored almost 11 years ago
The callers of those functions are all using ptp_message. As we're going to
return more informat...
In order to be able to convert to a generic address struct, separate source
and destination addr...
Signed-off-by: Jiri Benc <[email protected]>
github.com/nwtime/linuxptp - 8c02ae53f28e11c13c3d78b64e8546621900209c authored almost 11 years ago
When less bytes than the header size is read, do not indicate to the caller
that the read was su...
Currently, it is assumed that the management TLV data of management COMMAND
messages is always e...
The task of preparing the message for transmission and sending it appears
at many places. Unify ...
Signed-off-by: Miroslav Lichvar <[email protected]>
github.com/nwtime/linuxptp - 683218aee61906cdb40cbaa75e803a3db2b36fa3 authored almost 11 years ago
Most PHC drivers implement stepping (ADJ_SETOFFSET) by reading the
clock, adjusting the value by...
This servo uses linear regression to estimate current time and
frequency error. The number of po...
With the new linreg servo the frequency offset and time offset are
controlled separately. The ra...
These settings will be useful for all implemented servos, so move them
to the common servo code ...
The initial check if the clock should be stepped always passed after the
servo was reset (e.g. f...
Setting GRANDMASTER_SETTINGS_NP is allowed only from UDS, but
PORT_DATA_SET can be set from any ...
This fixes reporting of negative offsets.
Signed-off-by: Miroslav Lichvar <[email protected]>
github.com/nwtime/linuxptp - 85cebe02657478b8c91d4b94a79e1d7f16d9fda3 authored almost 11 years ago
This fixes cumulativeScaledRateOffset reported in TIME_STATUS_NP before
the rate ratio is update...
Signed-off-by: Miroslav Lichvar <[email protected]>
github.com/nwtime/linuxptp - c0fd772974a0bd9afa2a5570eeca5158b9ddc15c authored almost 11 years ago
When peer delay is < min_neighbor_prop_delay the port is flagged
as non 802.1AS capable. min_nei...