> -----Original Message-----
> From: Miroslav Lichvar <mlich...@redhat.com>
> Sent: Monday, September 4, 2023 11:04 PM
> To: linuxptp-devel@lists.sourceforge.net
> Subject: [Linuxptp-devel] [PATCH] phc2sys: Fix -n option with -w.
>
> The domain number used for communication with ptp4l specified by the -n
> option is ignored in the non-automatic mode (-w option). Set the domain
> number to the last specified value.
>
> Fixes: 417de97d098b ("phc2sys: Add multi-domain synchronization.")
> Signed-off-by: Miroslav Lichvar <mlich...@redhat.com>
> ---
Reviewed-by: Jacob Keller <jacob.e.kel...@intel.com>
> phc2sys.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/phc2sys.c b/phc2sys.c
> index 9d8d42f..7ea6929 100644
> --- a/phc2sys.c
> +++ b/phc2sys.c
> @@ -1494,6 +1494,9 @@ int main(int argc, char *argv[])
> if (uds_remote_cnt > 0)
> config_set_string(cfg, "uds_address",
> uds_remotes[uds_remote_cnt - 1]);
> + if (domain_number_cnt > 0)
> + config_set_int(cfg, "domainNumber",
> + domain_numbers[domain_number_cnt - 1]);
>
> if (init_pmc_node(cfg, domains[0].agent, uds_local,
> phc2sys_recv_subscribed, &domains[0]))
> --
> 2.41.0
>
>
>
> _______________________________________________
> Linuxptp-devel mailing list
> Linuxptp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linuxptp-devel
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel