Lines Matching refs:bp
207 register const struct ntpdata *bp; in ntp_print() local
210 bp = (struct ntpdata *)cp; in ntp_print()
212 ND_TCHECK(bp->status); in ntp_print()
214 version = (int)(bp->status & VERSIONMASK) >> 3; in ntp_print()
217 mode = bp->status & MODEMASK; in ntp_print()
229 leapind = bp->status & LEAPMASK; in ntp_print()
234 ND_TCHECK(bp->stratum); in ntp_print()
236 bp->stratum, in ntp_print()
237 …tok2str(ntp_stratum_values, (bp->stratum >=2 && bp->stratum<=15) ? "secondary reference" : "reserv… in ntp_print()
239 ND_TCHECK(bp->ppoll); in ntp_print()
240 ND_PRINT((ndo, ", poll %u (%us)", bp->ppoll, 1 << bp->ppoll)); in ntp_print()
243 ND_TCHECK2(bp->root_delay, 0); in ntp_print()
244 ND_PRINT((ndo, ", precision %d", bp->precision)); in ntp_print()
246 ND_TCHECK(bp->root_delay); in ntp_print()
248 p_sfix(ndo, &bp->root_delay); in ntp_print()
250 ND_TCHECK(bp->root_dispersion); in ntp_print()
252 p_sfix(ndo, &bp->root_dispersion); in ntp_print()
254 ND_TCHECK(bp->refid); in ntp_print()
257 switch (bp->stratum) { in ntp_print()
264 if (fn_printn(ndo, (u_char *)&(bp->refid), 4, ndo->ndo_snapend)) in ntp_print()
269 ND_PRINT((ndo, "%s INFO_QUERY", ipaddr_string(ndo, &(bp->refid)))); in ntp_print()
274 ND_PRINT((ndo, "%s INFO_REPLY", ipaddr_string(ndo, &(bp->refid)))); in ntp_print()
279 ND_PRINT((ndo, "%s", ipaddr_string(ndo, &(bp->refid)))); in ntp_print()
283 ND_TCHECK(bp->ref_timestamp); in ntp_print()
285 p_ntp_time(ndo, &(bp->ref_timestamp)); in ntp_print()
287 ND_TCHECK(bp->org_timestamp); in ntp_print()
289 p_ntp_time(ndo, &(bp->org_timestamp)); in ntp_print()
291 ND_TCHECK(bp->rec_timestamp); in ntp_print()
293 p_ntp_time(ndo, &(bp->rec_timestamp)); in ntp_print()
295 ND_TCHECK(bp->xmt_timestamp); in ntp_print()
297 p_ntp_time(ndo, &(bp->xmt_timestamp)); in ntp_print()
300 p_ntp_delta(ndo, &(bp->org_timestamp), &(bp->rec_timestamp)); in ntp_print()
303 p_ntp_delta(ndo, &(bp->org_timestamp), &(bp->xmt_timestamp)); in ntp_print()
306 ND_TCHECK(bp->key_id); in ntp_print()
307 ND_PRINT((ndo, "\n\tKey id: %u", bp->key_id)); in ntp_print()
309 ND_TCHECK(bp->key_id); in ntp_print()
310 ND_PRINT((ndo, "\n\tKey id: %u", bp->key_id)); in ntp_print()
311 ND_TCHECK2(bp->message_digest, sizeof (bp->message_digest)); in ntp_print()
313 EXTRACT_32BITS(bp->message_digest), in ntp_print()
314 EXTRACT_32BITS(bp->message_digest + 4), in ntp_print()
315 EXTRACT_32BITS(bp->message_digest + 8), in ntp_print()
316 EXTRACT_32BITS(bp->message_digest + 12))); in ntp_print()