HI, I will suggest to offer two enums to handle 2 or 2.1.
I have a question: is it insane to offer different version on port basis? Ciao Luigi Il dom 21 feb 2021, 16:34 Richard Cochran <richardcoch...@gmail.com> ha scritto: > On Sat, Feb 20, 2021 at 02:26:44PM +0800, Yangbo Lu wrote: > > IEEE 1588-2019 specified new UInteger4 type minorVersionPTP field in > header, > > and minorVersionNumber data in portDS. It has the value 1 for IEEE > 1588-2019, > > and has the value 0 for IEEE 1588-2008. > > I'd like to let the stack advertise the verion upgrade, since it does, > in fact, comply. > > > This patch is to make versionNumber and minorVersionNumber configurable, > rather > > than using hard-coded IEEE 1588-2008 version, for PTP packets. > > However I don't understand why this must be configurable. The user > should not be free to claim, for example, version 2.5 compliance. > > What is the use case for making the version configurable? > > Thanks, > Richard > > > _______________________________________________ > 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