On Tue, May 25, 2021 at 08:28:34PM +0000, Tim Martin wrote: > +struct clock_stats_np_tlv { > + struct stats_result offset_stats; > + struct stats_result freq_stats; > + struct stats_result delay_stats; > + uint8_t offset_freq_stats_valid; > + uint8_t delay_stats_valid; > +} PACKED;
Floating-point formats are not generally portable. In a network protocol they need to be converted to something else. Some of the implemented TLVs use fixed-point formats shifting by 32 or 41 bits. In this case I think it might be ok to just use integer nanoseconds and parts per billion. -- Miroslav Lichvar _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel