$DragonFly: src/usr.sbin/ntpd/patches/Attic/ntpd.h.patch,v 1.5 2005/04/14 10:31:27 joerg Exp $ Index: ntpd.h =================================================================== RCS file: /home/joerg/wd/repository/dragonflybsd/src/contrib/ntpd/ntpd.h,v retrieving revision 1.6 diff -u -r1.6 ntpd.h --- ntpd.h 25 Feb 2005 16:43:19 -0000 1.6 +++ ntpd.h 28 Feb 2005 19:44:37 -0000 @@ -30,6 +30,8 @@ #include "ntp.h" +#define SA_LEN(_sa) ((_sa)->sa_len) + #define NTPD_USER "_ntp" #define CONFFILE "/etc/ntpd.conf" @@ -49,8 +51,8 @@ #define MAX_SERVERS_DNS 8 -#define QSCALE_OFF_MIN 0.05 -#define QSCALE_OFF_MAX 0.50 +#define QSCALE_OFF_MIN 0.005 +#define QSCALE_OFF_MAX 0.010 #define QUERYTIME_MAX 15 /* single query might take n secs max */ #define OFFSET_ARRAY_SIZE 8 @@ -247,6 +249,8 @@ /* util.c */ double gettime(void); +double gettime_corrected(void); +double getoffset(void); void d_to_tv(double, struct timeval *); double lfp_to_d(struct l_fixedpt); struct l_fixedpt d_to_lfp(double);