Lines Matching refs:nr

161 	register const struct nfrec_v1 *nr;  in cnfp_v1_print()  local
187 nr = (const struct nfrec_v1 *)&nh[1]; in cnfp_v1_print()
191 for (; nrecs != 0; nr++, nrecs--) { in cnfp_v1_print()
198 ND_TCHECK(*nr); in cnfp_v1_print()
200 EXTRACT_32BITS(&nr->start_time)/1000, in cnfp_v1_print()
201 EXTRACT_32BITS(&nr->start_time)%1000, in cnfp_v1_print()
202 EXTRACT_32BITS(&nr->last_time)/1000, in cnfp_v1_print()
203 EXTRACT_32BITS(&nr->last_time)%1000)); in cnfp_v1_print()
206 ND_PRINT((ndo, "\n %s%s%s:%u ", intoa(nr->src_ina.s_addr), buf, asbuf, in cnfp_v1_print()
207 EXTRACT_16BITS(&nr->srcport))); in cnfp_v1_print()
209 ND_PRINT((ndo, "> %s%s%s:%u ", intoa(nr->dst_ina.s_addr), buf, asbuf, in cnfp_v1_print()
210 EXTRACT_16BITS(&nr->dstport))); in cnfp_v1_print()
212 ND_PRINT((ndo, ">> %s\n ", intoa(nr->nhop_ina.s_addr))); in cnfp_v1_print()
214 if (!ndo->ndo_nflag && (p_name = netdb_protoname(nr->proto)) != NULL) in cnfp_v1_print()
217 ND_PRINT((ndo, "%u ", nr->proto)); in cnfp_v1_print()
220 if (nr->proto == IPPROTO_TCP) { 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 if (!ndo->ndo_nflag && (p_name = netdb_protoname(nr->proto)) != NULL) in cnfp_v5_print()
313 ND_PRINT((ndo, "%u ", nr->proto)); in cnfp_v5_print()
316 if (nr->proto == IPPROTO_TCP) { in cnfp_v5_print()
318 flags = nr->tcp_flags; in cnfp_v5_print()
331 nr->tos, in cnfp_v5_print()
332 EXTRACT_32BITS(&nr->packets), in cnfp_v5_print()
333 EXTRACT_32BITS(&nr->octets), buf)); in cnfp_v5_print()
346 register const struct nfrec_v6 *nr; in cnfp_v6_print() local
373 nr = (const struct nfrec_v6 *)&nh[1]; in cnfp_v6_print()
377 for (; nrecs != 0; nr++, nrecs--) { in cnfp_v6_print()
384 ND_TCHECK(*nr); in cnfp_v6_print()
386 EXTRACT_32BITS(&nr->start_time)/1000, in cnfp_v6_print()
387 EXTRACT_32BITS(&nr->start_time)%1000, in cnfp_v6_print()
388 EXTRACT_32BITS(&nr->last_time)/1000, in cnfp_v6_print()
389 EXTRACT_32BITS(&nr->last_time)%1000)); in cnfp_v6_print()
392 snprintf(buf, sizeof(buf), "/%u", nr->src_mask); in cnfp_v6_print()
394 EXTRACT_16BITS(&nr->src_as)); in cnfp_v6_print()
395 ND_PRINT((ndo, "\n %s%s%s:%u ", intoa(nr->src_ina.s_addr), buf, asbuf, in cnfp_v6_print()
396 EXTRACT_16BITS(&nr->srcport))); in cnfp_v6_print()
398 snprintf(buf, sizeof(buf), "/%d", nr->dst_mask); in cnfp_v6_print()
400 EXTRACT_16BITS(&nr->dst_as)); in cnfp_v6_print()
401 ND_PRINT((ndo, "> %s%s%s:%u ", intoa(nr->dst_ina.s_addr), buf, asbuf, in cnfp_v6_print()
402 EXTRACT_16BITS(&nr->dstport))); in cnfp_v6_print()
404 ND_PRINT((ndo, ">> %s\n ", intoa(nr->nhop_ina.s_addr))); in cnfp_v6_print()
406 if (!ndo->ndo_nflag && (p_name = netdb_protoname(nr->proto)) != NULL) in cnfp_v6_print()
409 ND_PRINT((ndo, "%u ", nr->proto)); in cnfp_v6_print()
412 if (nr->proto == IPPROTO_TCP) { in cnfp_v6_print()
414 flags = nr->tcp_flags; in cnfp_v6_print()
427 (EXTRACT_16BITS(&nr->flags) >> 8) & 0xff, in cnfp_v6_print()
428 (EXTRACT_16BITS(&nr->flags)) & 0xff); in cnfp_v6_print()
430 nr->tos, in cnfp_v6_print()
431 EXTRACT_32BITS(&nr->packets), in cnfp_v6_print()
432 EXTRACT_32BITS(&nr->octets), buf)); in cnfp_v6_print()