[Linuxptp-devel] [PATCH 1/1] msg: Added const flag in msg_type

2018-11-08 Thread Anders Selhammer
Signed-off-by: Anders Selhammer --- msg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg.h b/msg.h index b5a57fe..02e45fd 100644 --- a/msg.h +++ b/msg.h @@ -299,7 +299,7 @@ static inline UInteger8 msg_transport_specific(struct ptp_message *m) * @param m Message to

[Linuxptp-devel] [PATCH 1/1] Added support for non-forwardable option

2018-11-08 Thread Anders Selhammer
Some network operators consider that the PTP messages must never be forwarded through PTP-unaware network equipment. The use of the non-forwardable multicast address 01-80-C2-00-00-0E guarantees this property most of the time (exceptions exist for some older Ethernet equipment). Signed-off-by:

[Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Dimitrios Katsaros
I have reduced the requirements for the -p option to accept any type of device. With this it should be possible to use ptp4l to syncronize any clock device that implements the kernel POSIX clock interface. Signed-off-by: Dimitrios Katsaros --- clock.c| 11 +-- clockadj.c | 43

Re: [Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Richard Cochran
On Thu, Nov 08, 2018 at 02:48:10PM +0100, Dimitrios Katsaros wrote: > Maybe I am missing something, but from what I can see from my demo, I can > set -S with this patch. Maybe there is something else I am not aware of? You are right, never mind. Thanks, Richard

Re: [Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Dimitrios Katsaros
Maybe I am missing something, but from what I can see from my demo, I can set -S with this patch. Maybe there is something else I am not aware of? I will also change the patch to also check clock_adjtime on device open On Thu, Nov 8, 2018, 2:29 PM Richard Cochran wrote: > On Thu, Nov 08, 2018

Re: [Linuxptp-devel] [PATCH 1/3] Implement POSIX interface for opening device clocks

2018-11-08 Thread Richard Cochran
On Wed, Nov 07, 2018 at 04:40:50PM +0100, Dimitrios Katsaros wrote: > I was instead checking for the clock_gettime syscall. Would that be an > acceptable solution? We should check for clock_adjtime() as well. Thanks, Richard ___ Linuxptp-devel

Re: [Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Richard Cochran
On Thu, Nov 08, 2018 at 02:09:09PM +0100, Dimitrios Katsaros wrote: > @@ -1053,6 +1052,14 @@ struct clock *clock_create(enum clock_type type, > struct config *config, > return NULL; > } > clockadj_init(c->clkid); > + } else if (phc_device) { >

[Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Dimitrios Katsaros
I have reduced the requirements for the -p option to accept any type of device. With this it should be possible to use ptp4l to syncronize any clock device that implements the kernel POSIX clock interface. Signed-off-by: Dimitrios Katsaros --- clock.c| 11 +-- clockadj.c | 43