|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: client.c,v 1.47 2004/12/09 20:24:46 mickey Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: client.c,v 1.48 2004/12/13 12:22:52 dtucker Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -198,6 +198,10 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) |
|
|
msg.orgtime.fractionl != p->query->msg.xmttime.fractionl) |
|
|
msg.orgtime.fractionl != p->query->msg.xmttime.fractionl) |
|
|
return (0); |
|
|
return (0); |
|
|
|
|
|
|
|
|
|
|
|
if ((msg.status & LI_ALARM) == LI_ALARM || msg.stratum == 0 || |
|
|
|
|
|
msg.stratum > NTP_MAXSTRATUM) |
|
|
|
|
|
return (0); |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* From RFC 2030 (with a correction to the delay math): |
|
|
* From RFC 2030 (with a correction to the delay math): |
|
|
* |
|
|
* |
|
|