On Tue, Apr 20, 2021 at 12:35:08PM +0200, Luigi 'Comio' Mantellini wrote: > port.twoStepFlag. > > When -1, inherit the global twoStepFlag value, otherwise enable two-step mode > for sync messages on port basis. One-step mode can be used only with hardware > time stamping. The default is -1 (as global twoStepFlag value). > --- > config.c | 1 + > port.c | 40 +++++++++++++++++++++++++++++++++++++++- > ptp4l.8 | 4 ++++ > 3 files changed, 44 insertions(+), 1 deletion(-) > > diff --git a/config.c b/config.c > index 4472d3d..13dcea8 100644 > --- a/config.c > +++ b/config.c > @@ -291,6 +291,7 @@ struct config_item config_tab[] = { > GLOB_ITEM_DBL("pi_proportional_exponent", -0.3, -DBL_MAX, DBL_MAX), > GLOB_ITEM_DBL("pi_proportional_norm_max", 0.7, DBL_MIN, 1.0), > GLOB_ITEM_DBL("pi_proportional_scale", 0.0, 0.0, DBL_MAX), > + PORT_ITEM_INT("port.twoStepFlag", -1, -1, 1),
Why not just make twoStepFlag into GLOB_ITEM_INT ? Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel