On Tue, Mar 09, 2021 at 10:28:48PM +0000, Geva, Erez wrote:
> However with the current code the endian depends on machine.
> So a linuxptp daemon that runs on a big endian (there are yet some) will send 
> the message in big endian.

Yeah, so at the very minimum, we should:

1. document the oversight in the source code, and

2. add le64_to_cpu/cpu_to_le64 in the post_recv/pre_send paths.

Thanks,
Richard





_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to