On Tue, Dec 05, 2023 at 08:57:36AM +0100, Miroslav Lichvar wrote: > On Mon, Dec 04, 2023 at 11:25:00PM +0100, Andrew Zaborowski wrote:
> > Doing cnt != 4 && cnt != 5 should just work as sscanf() should stop > > parsing when it doesn't find NOTIFY_CMLDS and leave onoff_cmlds as > > "off". Obviously this won't scale as more events are added but it'd > > keep syntax backwards-compatible for scripts. > > Good idea. The PARENT_DATA_SET notification is new too (added after > 4.1) and I guess there is no reason to require even the original two > notifications, so change that to "cnt < 1" with "%s SET needs at least > 1 value", requiring only the duration, which would effectively reset > all existing notifications? Makes sense to me. Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel