During the test I noticed that PortNumber is not correctly handled by BMCA. The ITU-T G.8275.2 is a little bit generic on PortId comparison criteria and the actual LinuxPTP implementation just uses a memcmp() call. This implementation doesn't consider the endianes of PortNumber value (UInteger16) that should be considered instead.
The fix consists to split the ClockId comparison part (still using memcmp() call) and the PortNumber comparison when ClockIds are equals. _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel