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