[ntp:questions] Server and Client can't sync
c.kevin.lam at gmail.com
Thu Nov 1 00:57:23 UTC 2007
Yes, ntpd wasn't run until after the clock change.
I'm using ntp-dev-4.2.5p83.tar.gz
I'm using option -g, so i can step more than 1000s.
I modified the ntp_io.c and undefine HAVE_TIMESTAMP and
USE_TIMESTAMP_CMSG by adding #if 0, like the following:
/*#if defined(SO_TIMESTAMP) && defined(SCM_TIMESTAMP) */
#define TIMESTAMP_CTLMSGBUF_SIZE 1536 /* moderate default */
After I undefined them, the time on windows is able to sync with the
one on vxworks. Why is this??
I'm really confused on the timestamping thing used in NTP. What layer
are we actually doing the timestamp? Are we doing it on the physical
layer or application layer of the OSI stack? My coworker said if we
undefine HAVE_TIMESTAMP and USE_TIMESTAMP_CMSG, we are going to do the
timestamp on the application, but if we define them, we are actually
doing the timestamp on the physical layer, is that true??
Thanks you very much,
More information about the questions