Re: [Linuxptp-devel] [PATCH] raw: Use BPF filter based on tcpdump syntax.

2023-02-06 Thread Richard Cochran
On Thu, Dec 22, 2022 at 06:36:19PM +0100, Sebastian Andrzej Siewior wrote: > Replace the hand written BPF code with something that has been created > by tcpdump based on a filter rule. This has the advantage that it can be > extended/ modified based text syntax and is safer to extend in regard to >

Re: [Linuxptp-devel] [PATCH] port: start sync rx timer on grant

2023-02-06 Thread Richard Cochran
On Fri, Jan 27, 2023 at 05:58:24AM -0800, Vadim Fedorenko via Linuxptp-devel wrote: > In case of broken network there is a possibility of having management > packets with proper data but absolute absence of sync packets. In such > case the selected best master will stuck in HAVE_SYDY state without

[Linuxptp-devel] [PATCH v3 3/4] timemaster: Replace shm_segment with refclock_id.

2023-02-06 Thread Miroslav Lichvar
Replace the shm_segment number with a more general refclock_id and shift by first_shm_index only in the SHM-specific context to allow other types of refclocks to be used. Signed-off-by: Miroslav Lichvar --- timemaster.c | 48 +++- 1 file changed, 27 in

[Linuxptp-devel] [PATCH v3 2/4] Add refclock_sock servo.

2023-02-06 Thread Miroslav Lichvar
Add a second servo that provides samples to other processes in order to control the clock. The chrony SOCK refclock uses a Unix domain socket instead of a shared memory segment. The main advantage over the NTP SHM refclock is better security as the socket can be located in a directory with restric

[Linuxptp-devel] [PATCH v3 1/4] Remove obsolete statement in ptp4l man page.

2023-02-06 Thread Miroslav Lichvar
The NTP SHM number is no longer the PTP domain number. It was made configurable and the default value is 0. Fixes: 3760f8b6537e ("Add option to set NTP SHM segment number.") Signed-off-by: Miroslav Lichvar --- ptp4l.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ptp4l.

[Linuxptp-devel] [PATCH v3 0/4] Support for chrony SOCK refclock

2023-02-06 Thread Miroslav Lichvar
v3: - fixed order of new entry in config_tab - fixed renamed option in man pages - changed default refclock_sock_address to /var/run/refclock.ptp.sock v2: - renamed servo to "refclock_sock" This patchset fixes a bug in man page, adds a new servo for the chrony SOCK refclock protocol as a more sec

[Linuxptp-devel] [PATCH v3 4/4] timemaster: Use refclock_sock servo with chrony.

2023-02-06 Thread Miroslav Lichvar
If chronyd is selected as the NTP program, use the SOCK refclock instead of SHM to improve security and reduce delay in receiving of samples. Signed-off-by: Miroslav Lichvar --- timemaster.8 | 10 - timemaster.c | 58 +++- 2 files changed,

Re: [Linuxptp-devel] [PATCH v3 0/4] Support for chrony SOCK refclock

2023-02-06 Thread Richard Cochran
On Mon, Feb 06, 2023 at 04:45:28PM +0100, Miroslav Lichvar wrote: > v3: > - fixed order of new entry in config_tab > - fixed renamed option in man pages > - changed default refclock_sock_address to /var/run/refclock.ptp.sock > > v2: > - renamed servo to "refclock_sock" > > This patchset fixes a b