|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: server.c,v 1.31 2007/01/15 08:19:11 otto Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: server.c,v 1.32 2008/06/10 03:46:09 naddy Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -162,11 +162,7 @@ server_dispatch(int fd, struct ntpd_conf *lconf) |
|
|
reply.xmttime = d_to_lfp(gettime_corrected()); |
|
|
reply.xmttime = d_to_lfp(gettime_corrected()); |
|
|
reply.orgtime = query.xmttime; |
|
|
reply.orgtime = query.xmttime; |
|
|
reply.rootdelay = d_to_sfp(lconf->status.rootdelay); |
|
|
reply.rootdelay = d_to_sfp(lconf->status.rootdelay); |
|
|
|
|
|
|
|
|
if (version > 3) |
|
|
|
|
|
reply.refid = lconf->status.refid4; |
|
|
|
|
|
else |
|
|
|
|
|
reply.refid = lconf->status.refid; |
|
|
|
|
|
|
|
|
reply.refid = lconf->status.refid; |
|
|
|
|
|
|
|
|
ntp_sendmsg(fd, (struct sockaddr *)&fsa, &reply, size, 0); |
|
|
ntp_sendmsg(fd, (struct sockaddr *)&fsa, &reply, size, 0); |
|
|
return (0); |
|
|
return (0); |
|
|