When phc2sys is started before ptp4l or it is interrupted before ptp4l has
a chance to reply to its query, the uds: sendto failed: Connection refused
message is output. This is not an interesting message.
Also, don't output the failed to send message error from pmc_send, as
all transports output
This puts groundwork for event subscription and notification. The individual
events are added by subsequent patches.
Signed-off-by: Jiri Benc jb...@redhat.com
---
clock.c| 136
clock.h| 11 +
notification.h | 27
Split management message creation to more fine-grained functions to allow
notification messages to be created.
Signed-off-by: Jiri Benc jb...@redhat.com
---
clock.c | 58 --
clock.h |8
port.c |8 +++-
port.h | 14
This parameter was made obsolete by the common address refactoring.
Signed-off-by: Jiri Benc jb...@redhat.com
---
clock.c |2 +-
port.c |2 +-
port.h |3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/clock.c b/clock.c
index c541951dcc68..a85efdec2857 100644
---
Notify subscribers about port state changes.
Signed-off-by: Jiri Benc jb...@redhat.com
---
notification.h |2 +-
port.c |6 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/notification.h b/notification.h
index 57e7a7856360..47c9b56c4f7e 100644
---
Split management message creation to more fine-grained functions to allow
notification messages to be created.
Signed-off-by: Jiri Benc jb...@redhat.com
---
port.c | 93 ++--
port.h |9 ++
2 files changed, 82 insertions(+), 20
v3: Split into two parts, this is the ptp4l part. The phc2sys part will
follow after this is accepted.
Reworked to use the new transport_sendto and common address interface.
Removed TLV PORT_ENUMERATION_NP, each port number is queried for its
existence instead.
Addressed all
Will be used by phc2sys to find out interfaces corresponding to ports.
Signed-off-by: Jiri Benc jb...@redhat.com
---
clock.c |9 +
port.c | 13 +
tlv.c | 14 ++
tlv.h |8
4 files changed, 44 insertions(+), 0 deletions(-)
diff --git