|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: client.c,v 1.67 2006/05/25 19:25:46 henning Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: client.c,v 1.68 2006/05/29 20:51:54 ckuethe Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -237,9 +237,10 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) |
|
|
if (p->reply[p->shift].delay < 0) { |
|
|
if (p->reply[p->shift].delay < 0) { |
|
|
interval = error_interval(); |
|
|
interval = error_interval(); |
|
|
set_next(p, interval); |
|
|
set_next(p, interval); |
|
|
log_info("reply from %s: negative delay %f", |
|
|
|
|
|
|
|
|
log_info("reply from %s: negative delay %fs, " |
|
|
|
|
|
"next query %ds", |
|
|
log_sockaddr((struct sockaddr *)&p->addr->ss), |
|
|
log_sockaddr((struct sockaddr *)&p->addr->ss), |
|
|
p->reply[p->shift].delay); |
|
|
|
|
|
|
|
|
p->reply[p->shift].delay, interval); |
|
|
return (0); |
|
|
return (0); |
|
|
} |
|
|
} |
|
|
p->reply[p->shift].error = (T2 - T1) - (T3 - T4); |
|
|
p->reply[p->shift].error = (T2 - T1) - (T3 - T4); |
|
|