This is a followup to the previous attempt at allowing to specify file mode of the UDS sockets. The v1 patch did not allow to specify different file modes for the RW and RO sockets, which seems like an essential option for me.

As discussed on linuxptp-users ("Config section for /var/log/ptp4lro creates an additional port"), configuring different file modes via port sections in config file does not work as intended. So I instead chose the way of passing the required information all the way down to uds_transport_create(), which is not easy as the differentiation between RW and RO ports lives only in clock.c, and uds_transport_create() does not have access to either the port instance or its config. I don't say this solution is nice, but it works. Any ideas how to make it nicer are welcome.

Best regards, Martin

Attachment: smime.p7s
Description: Elektronicky podpis S/MIME

_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to