Lines Matching refs:reply
118 #define reply (st.reply_) in server_dispatch() macro
140 bzero(&reply, sizeof(reply)); in server_dispatch()
142 reply.status = conf->status.leap; in server_dispatch()
144 reply.status = LI_ALARM; in server_dispatch()
145 reply.status |= (query.status & VERSIONMASK); in server_dispatch()
147 reply.status |= MODE_SERVER; in server_dispatch()
149 reply.status |= MODE_SYM_PAS; in server_dispatch()
154 reply.stratum = conf->status.stratum; in server_dispatch()
155 reply.ppoll = query.ppoll; in server_dispatch()
156 reply.precision = conf->status.precision; in server_dispatch()
157 reply.rectime = d_to_lfp(rectime); in server_dispatch()
158 reply.reftime = d_to_lfp(conf->status.reftime); in server_dispatch()
159 reply.orgtime = query.xmttime; in server_dispatch()
160 reply.rootdelay = d_to_sfp(conf->status.rootdelay); in server_dispatch()
162 if (((query.status & VERSIONMASK) >> 3) > 3 && reply.stratum > 1) in server_dispatch()
163 reply.refid = conf->status.refid4; in server_dispatch()
165 reply.refid = conf->status.refid; in server_dispatch()
167 reply.xmttime = d_to_lfp(gettime()); in server_dispatch()
168 ntp_sendmsg(fd, (struct sockaddr *)&fsa, &reply, size, 0); in server_dispatch()