On Mon, Feb 13, 2023 at 01:24:27PM +, Wojtek Wasko via Linuxptp-devel wrote:
> Current clockadj code only prints a message in case the kernel returns
> an error for a clock adjustment and prevents the higher-level code from
> reacting to failure.
>
> Signed-off-by: Wojciech Wasko
Series
Signed-off-by: Richard Cochran
---
tlv.c | 36
tlv.h | 24
2 files changed, 60 insertions(+)
diff --git a/tlv.c b/tlv.c
index 7a2a4fa..fb807e8 100644
--- a/tlv.c
+++ b/tlv.c
@@ -35,6 +35,7 @@
(tlv->length < sizeof(struct
Signed-off-by: Richard Cochran
---
clock.c | 21 +++-
pmc.c| 9 +
pmc_common.c | 56 +++-
tlv.c| 11 +++
tlv.h| 5 +
5 files changed, 100 insertions(+), 2 deletions(-)
diff --git
The ptp4l program supports up to four time zones via the
ALTERNATE_TIME_OFFSET_INDICATOR TLV. Introduce a helper program that
leverages the local time zone database to monitor for changes in
daylight savings time and publishing them.
Signed-off-by: Richard Cochran
---
makefile | 7 +-
Signed-off-by: Richard Cochran
---
config.c| 15 +-
port.c | 53 +
port_private.h | 3 +++
power_profile.h | 31 +
tlv.h | 8
5 files changed, 109 insertions(+), 1
Signed-off-by: Richard Cochran
---
tlv.c | 58 ++
tlv.h | 26 ++
2 files changed, 84 insertions(+)
diff --git a/tlv.c b/tlv.c
index 66d797a..81982c6 100644
--- a/tlv.c
+++ b/tlv.c
@@ -78,6 +78,22 @@ static uint16_t
IEEE Std C37.238 invented its own rules with respect to the range of
values allowed for the domainNumber attribute. The profile
"complies with IEEE Std 1588-2008 with the exception of the use of
the reserved domain 254. The value 254 is an exception granted to
this profile."
In
The function to set the alternate time offset name, a.k.a. time zone, will
be used by the time zone stand alone program. Make the function into a
public PMC method.
Signed-off-by: Richard Cochran
---
pmc_common.c | 5 ++---
pmc_common.h | 2 ++
2 files changed, 4 insertions(+), 3 deletions(-)
Signed-off-by: Richard Cochran
---
clock.c | 19 ---
tz.h| 26 ++
2 files changed, 42 insertions(+), 3 deletions(-)
create mode 100644 tz.h
diff --git a/clock.c b/clock.c
index e9072ab..2c9e3f3 100644
--- a/clock.c
+++ b/clock.c
@@ -42,6 +42,7 @@
Signed-off-by: Richard Cochran
---
clock.c | 70 +---
pmc.c| 17 +
pmc_common.c | 24 +-
tlv.c| 21
util.h | 7 ++
5 files changed, 134 insertions(+), 5 deletions(-)
diff
If the local PTP management client enables a time zone, append the
matching TLV to outgoing Announce messages.
Signed-off-by: Richard Cochran
---
clock.c | 80 ++--
clock.h | 8 ++
pmc.c| 8 ++
pmc_common.c | 17
Signed-off-by: Richard Cochran
---
pmc.c| 15 +++
pmc_common.c | 37 +
port.c | 20 +++-
tlv.c| 20
tlv.h| 1 +
5 files changed, 92 insertions(+), 1 deletion(-)
diff --git a/pmc.c
ChangeLog
~
v5:
Rename tztool to tz2alt
Provide man page for tz2alt
Fix year 2106 bug
v4:
Preserve all 48 bits of "next jump" (v3 review feedback from Erez Geva)
Accept the full range for domainNumber (suggested by v.nosikov)
v3:
Initial RFC
v2, v1:
never published
The Power
On Mon, Feb 13, 2023 at 12:11:08PM +0100, Miroslav Lichvar wrote:
> The lsb field of timeOfNextJump is unsigned, so it will overflow in
> year 2106 (in the TAI timescale).
Some of the power industry equipment lasts 30 or 40 years (except in
California where they make it out of sugar, and it
14 matches
Mail list logo