We use TLV_PORT_STATS_NP localy and over network. To prevent mismatch when the pmc and the ptp4l runs on mechine using different byte order. We change the statistics to little endian. We choose little endian since most of us use machines with little endian and we want to be backward compatible with most.
Erez Geva (2): Add host order to network order of 64 bits Ensure TLV_PORT_STATS_NP statistics uses little endian pmc.c | 51 +++++++++++++++++++++++++++++++-------------------- port.c | 6 +++++- util.h | 23 +++++++++++++++++++++++ 3 files changed, 59 insertions(+), 21 deletions(-) -- 2.20.1 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel