summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-09-25 10:28:02 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-01 10:19:17 (GMT)
commit1a77cd3c3629dc1008e550716f41c591656c9351 (patch)
treefec0b46a3a8bbbae368977e4cc268b4e84f70cfc /src/inet.c
parent3e3ff223e68bbdaa12b237732230929b6887a305 (diff)
downloadconnman-1a77cd3c3629dc1008e550716f41c591656c9351.zip
connman-1a77cd3c3629dc1008e550716f41c591656c9351.tar.gz
connman-1a77cd3c3629dc1008e550716f41c591656c9351.tar.bz2
ntp: Calculate transmit time from receive time and monotonic delta
Calculate transmit time used in NTP as the reception time minus the delta of the monotonic receive and transmit times. When calculated this way, it does not matter if the time happens to be set to something else between the sending and receiving of the NTP packet. On sending the added monotonic time and the previous transmit time are saved at the same point in time. On reception the monotonic time is evaluated after the packet has been received by ConnMan. This is in contrast to the actual reception wall clock time which is added by the kernel. The difference between the reception times on a normal system is about 100┬Ás, which is neglible.
Diffstat (limited to 'src/inet.c')
0 files changed, 0 insertions, 0 deletions