Lines Matching refs:ndo
70 static const struct atNBPtuple *nbp_tuple_print(netdissect_options *ndo, const struct atNBPtuple *,
83 ltalk_if_print(netdissect_options *ndo, in ltalk_if_print() argument
86 return (llap_print(ndo, p, h->caplen)); in ltalk_if_print()
93 llap_print(netdissect_options *ndo, in llap_print() argument
103 ND_PRINT((ndo, " [|llap %u]", length)); in llap_print()
114 ND_PRINT((ndo, " [|sddp %u]", length)); in llap_print()
118 ND_PRINT((ndo, "%s.%s", in llap_print()
119 ataddr_string(ndo, 0, lp->src), ddpskt_string(ndo, sdp->srcSkt))); in llap_print()
120 ND_PRINT((ndo, " > %s.%s:", in llap_print()
121 ataddr_string(ndo, 0, lp->dst), ddpskt_string(ndo, sdp->dstSkt))); in llap_print()
125 ddp_print(ndo, bp, length, sdp->type, 0, lp->src, sdp->srcSkt); in llap_print()
130 ND_PRINT((ndo, " [|ddp %u]", length)); in llap_print()
135 ND_PRINT((ndo, "%s.%s", ataddr_string(ndo, snet, dp->srcNode), in llap_print()
136 ddpskt_string(ndo, dp->srcSkt))); in llap_print()
137 ND_PRINT((ndo, " > %s.%s:", in llap_print()
138 ataddr_string(ndo, EXTRACT_16BITS(&dp->dstNet), dp->dstNode), in llap_print()
139 ddpskt_string(ndo, dp->dstSkt))); in llap_print()
143 ddp_print(ndo, bp, length, dp->type, snet, dp->srcNode, dp->srcSkt); in llap_print()
153 ND_PRINT((ndo, "%d > %d at-lap#%d %u", in llap_print()
166 atalk_print(netdissect_options *ndo, in atalk_print() argument
172 if(!ndo->ndo_eflag) in atalk_print()
173 ND_PRINT((ndo, "AT ")); in atalk_print()
176 ND_PRINT((ndo, " [|ddp %u]", length)); in atalk_print()
181 ND_PRINT((ndo, "%s.%s", ataddr_string(ndo, snet, dp->srcNode), in atalk_print()
182 ddpskt_string(ndo, dp->srcSkt))); in atalk_print()
183 ND_PRINT((ndo, " > %s.%s: ", in atalk_print()
184 ataddr_string(ndo, EXTRACT_16BITS(&dp->dstNet), dp->dstNode), in atalk_print()
185 ddpskt_string(ndo, dp->dstSkt))); in atalk_print()
188 ddp_print(ndo, bp, length, dp->type, snet, dp->srcNode, dp->srcSkt); in atalk_print()
193 aarp_print(netdissect_options *ndo, in aarp_print() argument
198 #define AT(member) ataddr_string(ndo, (ap->member[1]<<8)|ap->member[2],ap->member[3]) in aarp_print()
200 ND_PRINT((ndo, "aarp ")); in aarp_print()
208 ND_PRINT((ndo, "who-has %s tell %s", AT(pdaddr), AT(psaddr))); in aarp_print()
212 ND_PRINT((ndo, "reply %s is-at %s", AT(psaddr), etheraddr_string(ndo, ap->hsaddr))); in aarp_print()
216 ND_PRINT((ndo, "probe %s tell %s", AT(pdaddr), AT(psaddr))); in aarp_print()
219 ND_PRINT((ndo, "len %u op %u htype %u ptype %#x halen %u palen %u", in aarp_print()
228 ddp_print(netdissect_options *ndo, in ddp_print() argument
236 nbp_print(ndo, (const struct atNBP *)bp, length, snet, snode, skt); in ddp_print()
240 atp_print(ndo, (const struct atATP *)bp, length); in ddp_print()
244 eigrp_print(ndo, bp, length); in ddp_print()
248 ND_PRINT((ndo, " at-%s %d", tok2str(type2str, NULL, t), length)); in ddp_print()
254 atp_print(netdissect_options *ndo, in atp_print() argument
260 if ((const u_char *)(ap + 1) > ndo->ndo_snapend) { in atp_print()
262 ND_PRINT((ndo, "%s", tstr)); in atp_print()
266 ND_PRINT((ndo, " [|atp %u]", length)); in atp_print()
273 ND_PRINT((ndo, " atp-req%s %d", in atp_print()
277 atp_bitmap_print(ndo, ap->bitmap); in atp_print()
280 ND_PRINT((ndo, " [len=%u]", length)); in atp_print()
284 ND_PRINT((ndo, " [EOM]")); in atp_print()
287 ND_PRINT((ndo, " [STS]")); in atp_print()
290 ND_PRINT((ndo, " [EOM,STS]")); in atp_print()
296 ND_PRINT((ndo, " atp-resp%s%d:%d (%u)", in atp_print()
301 ND_PRINT((ndo, " [XO]")); in atp_print()
304 ND_PRINT((ndo, " [STS]")); in atp_print()
307 ND_PRINT((ndo, " [XO,STS]")); in atp_print()
313 ND_PRINT((ndo, " atp-rel %d", EXTRACT_16BITS(&ap->transID))); in atp_print()
315 atp_bitmap_print(ndo, ap->bitmap); in atp_print()
319 ND_PRINT((ndo, " [len=%u]", length)); in atp_print()
325 ND_PRINT((ndo, "%cXO", c)); in atp_print()
329 ND_PRINT((ndo, "%cEOM", c)); in atp_print()
333 ND_PRINT((ndo, "%cSTS", c)); in atp_print()
336 ND_PRINT((ndo, "]")); in atp_print()
341 ND_PRINT((ndo, " atp-0x%x %d (%u)", ap->control, in atp_print()
347 ND_PRINT((ndo, " 0x%x", data)); in atp_print()
351 atp_bitmap_print(netdissect_options *ndo, in atp_bitmap_print() argument
366 ND_PRINT((ndo, "%c%d", c, i)); in atp_bitmap_print()
371 ND_PRINT((ndo, ">")); in atp_bitmap_print()
376 ND_PRINT((ndo, "<0-%d>", i - 1)); in atp_bitmap_print()
378 ND_PRINT((ndo, "<0>")); in atp_bitmap_print()
383 nbp_print(netdissect_options *ndo, in nbp_print() argument
393 ND_PRINT((ndo, " truncated-nbp %u", length)); in nbp_print()
400 ND_PRINT((ndo, " truncated-nbp %u", length + nbpHeaderSize)); in nbp_print()
404 ep = ndo->ndo_snapend; in nbp_print()
406 ND_PRINT((ndo, "%s", tstr)); in nbp_print()
413 ND_PRINT((ndo, i == nbpLkUp? " nbp-lkup %d:":" nbp-brRq %d:", np->id)); in nbp_print()
415 ND_PRINT((ndo, "%s", tstr)); in nbp_print()
418 (void)nbp_name_print(ndo, tp, ep); in nbp_print()
425 ND_PRINT((ndo, " [ntup=%d]", np->control & 0xf)); in nbp_print()
427 ND_PRINT((ndo, " [enum=%d]", tp->enumerator)); in nbp_print()
430 ND_PRINT((ndo, " [addr=%s.%d]", in nbp_print()
431 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), in nbp_print()
436 ND_PRINT((ndo, " nbp-reply %d:", np->id)); in nbp_print()
440 tp = nbp_tuple_print(ndo, tp, ep, snet, snode, skt); in nbp_print()
444 ND_PRINT((ndo, " nbp-0x%x %d (%u)", np->control, np->id, length)); in nbp_print()
451 print_cstring(netdissect_options *ndo, in print_cstring() argument
457 ND_PRINT((ndo, "%s", tstr)); in print_cstring()
464 ND_PRINT((ndo, "[len=%u]", length)); in print_cstring()
469 ND_PRINT((ndo, "%s", tstr)); in print_cstring()
472 ND_PRINT((ndo, "%c", *cp++)); in print_cstring()
478 nbp_tuple_print(netdissect_options *ndo, in nbp_tuple_print() argument
485 ND_PRINT((ndo, "%s", tstr)); in nbp_tuple_print()
488 tpn = nbp_name_print(ndo, tp, ep); in nbp_tuple_print()
492 ND_PRINT((ndo, "(%d)", tp->enumerator)); in nbp_tuple_print()
496 ND_PRINT((ndo, " %d", tp->skt)); in nbp_tuple_print()
500 ND_PRINT((ndo, " [addr=%s]", in nbp_tuple_print()
501 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), tp->node))); in nbp_tuple_print()
507 nbp_name_print(netdissect_options *ndo, in nbp_name_print() argument
512 ND_PRINT((ndo, " ")); in nbp_name_print()
515 ND_PRINT((ndo, "\"")); in nbp_name_print()
516 if ((cp = print_cstring(ndo, cp, ep)) != NULL) { in nbp_name_print()
518 ND_PRINT((ndo, ":")); in nbp_name_print()
519 if ((cp = print_cstring(ndo, cp, ep)) != NULL) { in nbp_name_print()
521 ND_PRINT((ndo, "@")); in nbp_name_print()
522 if ((cp = print_cstring(ndo, cp, ep)) != NULL) in nbp_name_print()
523 ND_PRINT((ndo, "\"")); in nbp_name_print()
541 ataddr_string(netdissect_options *ndo, in ataddr_string() argument
554 if (first && (first = 0, !ndo->ndo_nflag) in ataddr_string()
617 ddpskt_string(netdissect_options *ndo, in ddpskt_string() argument
622 if (ndo->ndo_nflag) { in ddpskt_string()