[ntp:questions] Re: IGEL:Clock Problem

Vincent Smeets Nobody at No.SPAM.org
Mon Oct 13 07:25:20 UTC 2003


Hi Wilhelm,

I am using the IGEL clock with a Sun Solaris system. I have made some
changes to the software to be able to use the clock. Here are the patches I
have made.

Vincent Smeets

diff -cr ntp-4.1.1.orig/ntpd/ntpd.c ntp-4.1.1/ntpd/ntpd.c
*** ntp-4.1.1.orig/ntpd/ntpd.c Sun Oct 21 00:49:23 2001
--- ntp-4.1.1/ntpd/ntpd.c Wed Jan 29 13:50:25 2003
***************
*** 937,943 ****
    {
     rbuf = rbuflist;
     rbuflist = rbuf->next;
!    (rbuf->receiver)(rbuf);
     freerecvbuf(rbuf);
    }
  #if defined DEBUG && defined SYS_WINNT
--- 937,945 ----
    {
     rbuf = rbuflist;
     rbuflist = rbuf->next;
!    if (rbuf->receiver != NULL) {
!     (rbuf->receiver)(rbuf);
!    }
     freerecvbuf(rbuf);
    }
  #if defined DEBUG && defined SYS_WINNT
diff -cr ntp-4.1.1.orig/ntpd/refclock_parse.c
ntp-4.1.1/ntpd/refclock_parse.c
*** ntp-4.1.1.orig/ntpd/refclock_parse.c Tue Oct  9 07:58:41 2001
--- ntp-4.1.1/ntpd/refclock_parse.c Wed Jan 29 13:50:26 2003
***************
*** 602,608 ****
   */
  #define IGELCLOCK_BASEDELAY 0.258 /* IGEL:clock receiver */
  #define IGELCLOCK_DESCRIPTION "RAW DCF77 CODE (IGEL:clock)"
! #define IGELCLOCK_SPEED  (B1200)
  #define IGELCLOCK_CFLAG  (CS8|CREAD|HUPCL|CLOCAL)

  /*
--- 602,608 ----
   */
  #define IGELCLOCK_BASEDELAY 0.258 /* IGEL:clock receiver */
  #define IGELCLOCK_DESCRIPTION "RAW DCF77 CODE (IGEL:clock)"
! #define IGELCLOCK_SPEED  (B600)
  #define IGELCLOCK_CFLAG  (CS8|CREAD|HUPCL|CLOCAL)

  /*
***************
*** 999,1005 ****
   {    /* mode 8 */
    RAWDCF_FLAGS,
    NO_POLL,
!   NO_INIT,
    NO_EVENT,
    NO_END,
    NO_MESSAGE,
--- 999,1005 ----
   {    /* mode 8 */
    RAWDCF_FLAGS,
    NO_POLL,
!   RAWDCFDTRSET_INIT,
    NO_EVENT,
    NO_END,
    NO_MESSAGE,





More information about the questions mailing list