intel-staging / libptpmgmt_iaclocklib

The Clock Manager is a library for monitoring network time synchronization on the local platform. Disclaimer: This project is under development. All source code and features on the main branch is for the purpose of testing or evaluation and not production ready. We will upstream the code and archive this GitHub repo thereafter.
Other
4 stars 5 forks source link

Add connection between jclklib proxy and ptp4l #6

Closed JunAnnLaiIntel closed 3 months ago

JunAnnLaiIntel commented 4 months ago

This PR is to add the connection between jclklib proxy and ptp4l (uds socket) by using ptpmgmt library. For testing purpose, there is printing out the msg "received time sync data" when both ptp4l server and client are synced, to make sure the connection is established.

AzuraTarmiziIntel commented 3 months ago

one more thing. this is WIP . but is it enough for a incremental checkin ?

yoongsiang2 commented 3 months ago

Added event definition in m4 file to avoid following build error. make command will generate proc.h file accordingly.

connect.cpp: In function 'bool event_subscription(jcl_handle**)': connect.cpp:237:16: error: 'NOTIFY_PORT_STATE_NP' was not declared in this scope 237 | d.setEvent(NOTIFY_PORT_STATE_NP); | ^~~~~~~~ connect.cpp:238:16: error: 'NOTIFY_ALL' was not declared in this scope 238 | d.setEvent(NOTIFY_ALL); | ^~~~~~