On Thu, Jul 22, 2010 at 10:29:54AM +0200, f96h...@chalmers.se wrote: > Regarding updating the NTPSHM structure, I thought about this quite > some while ago, but got stuck at the issue of how to make it > backwards compatible in the light of mixed 32/64-bit installations > discussed a while ago on the gpsd list. Issue there is that an int > can be both 32 and 64 bits, thus even spoiling identifications by > the 'mode' member.
To make it compatible on 32/64bits will probably require an incompatible change. If compatibility with current protocol should be preserved, the easiest way to extend it for nanoseconds seems to be allocating two ints from the dummy array, fill them with nanoseconds, fill also the old fields with microseconds and the receiver would just check if nsec / 1000 = usec and only then it would the nanosecond fields. -- Miroslav Lichvar --- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.