Lines Matching refs:nr

160 	register const struct nfrec_v1 *nr;  in cnfp_v1_print()  local
186 nr = (const struct nfrec_v1 *)&nh[1]; in cnfp_v1_print()
190 for (; nrecs != 0; nr++, nrecs--) { in cnfp_v1_print()
197 ND_TCHECK(*nr); in cnfp_v1_print()
199 EXTRACT_32BITS(&nr->start_time)/1000, in cnfp_v1_print()
200 EXTRACT_32BITS(&nr->start_time)%1000, in cnfp_v1_print()
201 EXTRACT_32BITS(&nr->last_time)/1000, in cnfp_v1_print()
202 EXTRACT_32BITS(&nr->last_time)%1000)); in cnfp_v1_print()
205 ND_PRINT((ndo, "\n %s%s%s:%u ", intoa(nr->src_ina.s_addr), buf, asbuf, in cnfp_v1_print()
206 EXTRACT_16BITS(&nr->srcport))); in cnfp_v1_print()
208 ND_PRINT((ndo, "> %s%s%s:%u ", intoa(nr->dst_ina.s_addr), buf, asbuf, in cnfp_v1_print()
209 EXTRACT_16BITS(&nr->dstport))); in cnfp_v1_print()
211 ND_PRINT((ndo, ">> %s\n ", intoa(nr->nhop_ina.s_addr))); in cnfp_v1_print()
213 pent = getprotobynumber(nr->proto); in cnfp_v1_print()
215 ND_PRINT((ndo, "%u ", nr->proto)); in cnfp_v1_print()
222 flags = nr->tcp_flags; in cnfp_v1_print()
235 nr->tos, in cnfp_v1_print()
236 EXTRACT_32BITS(&nr->packets), in cnfp_v1_print()
237 EXTRACT_32BITS(&nr->octets), buf)); in cnfp_v1_print()
250 register const struct nfrec_v5 *nr; in cnfp_v5_print() local
277 nr = (const struct nfrec_v5 *)&nh[1]; in cnfp_v5_print()
281 for (; nrecs != 0; nr++, nrecs--) { in cnfp_v5_print()
288 ND_TCHECK(*nr); in cnfp_v5_print()
290 EXTRACT_32BITS(&nr->start_time)/1000, in cnfp_v5_print()
291 EXTRACT_32BITS(&nr->start_time)%1000, in cnfp_v5_print()
292 EXTRACT_32BITS(&nr->last_time)/1000, in cnfp_v5_print()
293 EXTRACT_32BITS(&nr->last_time)%1000)); in cnfp_v5_print()
296 snprintf(buf, sizeof(buf), "/%u", nr->src_mask); in cnfp_v5_print()
298 EXTRACT_16BITS(&nr->src_as)); in cnfp_v5_print()
299 ND_PRINT((ndo, "\n %s%s%s:%u ", intoa(nr->src_ina.s_addr), buf, asbuf, in cnfp_v5_print()
300 EXTRACT_16BITS(&nr->srcport))); in cnfp_v5_print()
302 snprintf(buf, sizeof(buf), "/%d", nr->dst_mask); in cnfp_v5_print()
304 EXTRACT_16BITS(&nr->dst_as)); in cnfp_v5_print()
305 ND_PRINT((ndo, "> %s%s%s:%u ", intoa(nr->dst_ina.s_addr), buf, asbuf, in cnfp_v5_print()
306 EXTRACT_16BITS(&nr->dstport))); in cnfp_v5_print()
308 ND_PRINT((ndo, ">> %s\n ", intoa(nr->nhop_ina.s_addr))); in cnfp_v5_print()
310 pent = getprotobynumber(nr->proto); in cnfp_v5_print()
312 ND_PRINT((ndo, "%u ", nr->proto)); in cnfp_v5_print()
319 flags = nr->tcp_flags; in cnfp_v5_print()
332 nr->tos, in cnfp_v5_print()
333 EXTRACT_32BITS(&nr->packets), in cnfp_v5_print()
334 EXTRACT_32BITS(&nr->octets), buf)); in cnfp_v5_print()
347 register const struct nfrec_v6 *nr; in cnfp_v6_print() local
374 nr = (const struct nfrec_v6 *)&nh[1]; in cnfp_v6_print()
378 for (; nrecs != 0; nr++, nrecs--) { in cnfp_v6_print()
385 ND_TCHECK(*nr); in cnfp_v6_print()
387 EXTRACT_32BITS(&nr->start_time)/1000, in cnfp_v6_print()
388 EXTRACT_32BITS(&nr->start_time)%1000, in cnfp_v6_print()
389 EXTRACT_32BITS(&nr->last_time)/1000, in cnfp_v6_print()
390 EXTRACT_32BITS(&nr->last_time)%1000)); in cnfp_v6_print()
393 snprintf(buf, sizeof(buf), "/%u", nr->src_mask); in cnfp_v6_print()
395 EXTRACT_16BITS(&nr->src_as)); in cnfp_v6_print()
396 ND_PRINT((ndo, "\n %s%s%s:%u ", intoa(nr->src_ina.s_addr), buf, asbuf, in cnfp_v6_print()
397 EXTRACT_16BITS(&nr->srcport))); in cnfp_v6_print()
399 snprintf(buf, sizeof(buf), "/%d", nr->dst_mask); in cnfp_v6_print()
401 EXTRACT_16BITS(&nr->dst_as)); in cnfp_v6_print()
402 ND_PRINT((ndo, "> %s%s%s:%u ", intoa(nr->dst_ina.s_addr), buf, asbuf, in cnfp_v6_print()
403 EXTRACT_16BITS(&nr->dstport))); in cnfp_v6_print()
405 ND_PRINT((ndo, ">> %s\n ", intoa(nr->nhop_ina.s_addr))); in cnfp_v6_print()
407 pent = getprotobynumber(nr->proto); in cnfp_v6_print()
409 ND_PRINT((ndo, "%u ", nr->proto)); in cnfp_v6_print()
416 flags = nr->tcp_flags; in cnfp_v6_print()
429 (EXTRACT_16BITS(&nr->flags) >> 8) & 0xff, in cnfp_v6_print()
430 (EXTRACT_16BITS(&nr->flags)) & 0xff); in cnfp_v6_print()
432 nr->tos, in cnfp_v6_print()
433 EXTRACT_32BITS(&nr->packets), in cnfp_v6_print()
434 EXTRACT_32BITS(&nr->octets), buf)); in cnfp_v6_print()