Lines Matching refs:ndo

64 static const struct atNBPtuple *nbp_tuple_print(netdissect_options *ndo, const struct atNBPtuple *,
77 ltalk_if_print(netdissect_options *ndo, in ltalk_if_print() argument
82 hdrlen = llap_print(ndo, p, h->len); in ltalk_if_print()
94 llap_print(netdissect_options *ndo, in llap_print() argument
104 ND_PRINT((ndo, " [|llap %u]", length)); in llap_print()
108 ND_PRINT((ndo, " [|llap]")); in llap_print()
119 ND_PRINT((ndo, " [|sddp %u]", length)); in llap_print()
123 ND_PRINT((ndo, " [|sddp]")); in llap_print()
127 ND_PRINT((ndo, "%s.%s", in llap_print()
128 ataddr_string(ndo, 0, lp->src), ddpskt_string(ndo, sdp->srcSkt))); in llap_print()
129 ND_PRINT((ndo, " > %s.%s:", in llap_print()
130 ataddr_string(ndo, 0, lp->dst), ddpskt_string(ndo, sdp->dstSkt))); in llap_print()
134 ddp_print(ndo, bp, length, sdp->type, 0, lp->src, sdp->srcSkt); in llap_print()
139 ND_PRINT((ndo, " [|ddp %u]", length)); in llap_print()
143 ND_PRINT((ndo, " [|ddp]")); in llap_print()
148 ND_PRINT((ndo, "%s.%s", ataddr_string(ndo, snet, dp->srcNode), in llap_print()
149 ddpskt_string(ndo, dp->srcSkt))); in llap_print()
150 ND_PRINT((ndo, " > %s.%s:", in llap_print()
151 ataddr_string(ndo, EXTRACT_16BITS(&dp->dstNet), dp->dstNode), in llap_print()
152 ddpskt_string(ndo, dp->dstSkt))); in llap_print()
156 ddp_print(ndo, bp, length, dp->type, snet, dp->srcNode, dp->srcSkt); in llap_print()
166 ND_PRINT((ndo, "%d > %d at-lap#%d %u", in llap_print()
179 atalk_print(netdissect_options *ndo, in atalk_print() argument
185 if(!ndo->ndo_eflag) in atalk_print()
186 ND_PRINT((ndo, "AT ")); in atalk_print()
189 ND_PRINT((ndo, " [|ddp %u]", length)); in atalk_print()
193 ND_PRINT((ndo, " [|ddp]")); in atalk_print()
198 ND_PRINT((ndo, "%s.%s", ataddr_string(ndo, snet, dp->srcNode), in atalk_print()
199 ddpskt_string(ndo, dp->srcSkt))); in atalk_print()
200 ND_PRINT((ndo, " > %s.%s: ", in atalk_print()
201 ataddr_string(ndo, EXTRACT_16BITS(&dp->dstNet), dp->dstNode), in atalk_print()
202 ddpskt_string(ndo, dp->dstSkt))); in atalk_print()
205 ddp_print(ndo, bp, length, dp->type, snet, dp->srcNode, dp->srcSkt); in atalk_print()
210 aarp_print(netdissect_options *ndo, in aarp_print() argument
215 #define AT(member) ataddr_string(ndo, (ap->member[1]<<8)|ap->member[2],ap->member[3]) in aarp_print()
217 ND_PRINT((ndo, "aarp ")); in aarp_print()
221 ND_PRINT((ndo, " [|aarp]")); in aarp_print()
225 ND_PRINT((ndo, " [|aarp %u]", length)); in aarp_print()
234 ND_PRINT((ndo, "who-has %s tell %s", AT(pdaddr), AT(psaddr))); in aarp_print()
238 ND_PRINT((ndo, "reply %s is-at %s", AT(psaddr), etheraddr_string(ndo, ap->hsaddr))); in aarp_print()
242 ND_PRINT((ndo, "probe %s tell %s", AT(pdaddr), AT(psaddr))); in aarp_print()
245 ND_PRINT((ndo, "len %u op %u htype %u ptype %#x halen %u palen %u", in aarp_print()
254 ddp_print(netdissect_options *ndo, in ddp_print() argument
262 nbp_print(ndo, (const struct atNBP *)bp, length, snet, snode, skt); in ddp_print()
266 atp_print(ndo, (const struct atATP *)bp, length); in ddp_print()
270 eigrp_print(ndo, bp, length); in ddp_print()
274 ND_PRINT((ndo, " at-%s %d", tok2str(type2str, NULL, t), length)); in ddp_print()
280 atp_print(netdissect_options *ndo, in atp_print() argument
286 if ((const u_char *)(ap + 1) > ndo->ndo_snapend) { in atp_print()
288 ND_PRINT((ndo, "%s", tstr)); in atp_print()
292 ND_PRINT((ndo, " [|atp %u]", length)); in atp_print()
299 ND_PRINT((ndo, " atp-req%s %d", in atp_print()
303 atp_bitmap_print(ndo, ap->bitmap); in atp_print()
306 ND_PRINT((ndo, " [len=%u]", length)); in atp_print()
310 ND_PRINT((ndo, " [EOM]")); in atp_print()
313 ND_PRINT((ndo, " [STS]")); in atp_print()
316 ND_PRINT((ndo, " [EOM,STS]")); in atp_print()
322 ND_PRINT((ndo, " atp-resp%s%d:%d (%u)", in atp_print()
327 ND_PRINT((ndo, " [XO]")); in atp_print()
330 ND_PRINT((ndo, " [STS]")); in atp_print()
333 ND_PRINT((ndo, " [XO,STS]")); in atp_print()
339 ND_PRINT((ndo, " atp-rel %d", EXTRACT_16BITS(&ap->transID))); in atp_print()
341 atp_bitmap_print(ndo, ap->bitmap); in atp_print()
345 ND_PRINT((ndo, " [len=%u]", length)); in atp_print()
351 ND_PRINT((ndo, "%cXO", c)); in atp_print()
355 ND_PRINT((ndo, "%cEOM", c)); in atp_print()
359 ND_PRINT((ndo, "%cSTS", c)); in atp_print()
362 ND_PRINT((ndo, "]")); in atp_print()
367 ND_PRINT((ndo, " atp-0x%x %d (%u)", ap->control, in atp_print()
373 ND_PRINT((ndo, " 0x%x", data)); in atp_print()
377 atp_bitmap_print(netdissect_options *ndo, in atp_bitmap_print() argument
392 ND_PRINT((ndo, "%c%d", c, i)); in atp_bitmap_print()
397 ND_PRINT((ndo, ">")); in atp_bitmap_print()
402 ND_PRINT((ndo, "<0-%d>", i - 1)); in atp_bitmap_print()
404 ND_PRINT((ndo, "<0>")); in atp_bitmap_print()
409 nbp_print(netdissect_options *ndo, in nbp_print() argument
419 ND_PRINT((ndo, " truncated-nbp %u", length)); in nbp_print()
426 ND_PRINT((ndo, " truncated-nbp %u", length + nbpHeaderSize)); in nbp_print()
430 ep = ndo->ndo_snapend; in nbp_print()
432 ND_PRINT((ndo, "%s", tstr)); in nbp_print()
439 ND_PRINT((ndo, i == nbpLkUp? " nbp-lkup %d:":" nbp-brRq %d:", np->id)); in nbp_print()
441 ND_PRINT((ndo, "%s", tstr)); in nbp_print()
444 (void)nbp_name_print(ndo, tp, ep); in nbp_print()
451 ND_PRINT((ndo, " [ntup=%d]", np->control & 0xf)); in nbp_print()
453 ND_PRINT((ndo, " [enum=%d]", tp->enumerator)); in nbp_print()
456 ND_PRINT((ndo, " [addr=%s.%d]", in nbp_print()
457 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), in nbp_print()
462 ND_PRINT((ndo, " nbp-reply %d:", np->id)); in nbp_print()
466 tp = nbp_tuple_print(ndo, tp, ep, snet, snode, skt); in nbp_print()
470 ND_PRINT((ndo, " nbp-0x%x %d (%u)", np->control, np->id, length)); in nbp_print()
477 print_cstring(netdissect_options *ndo, in print_cstring() argument
483 ND_PRINT((ndo, "%s", tstr)); in print_cstring()
490 ND_PRINT((ndo, "[len=%u]", length)); in print_cstring()
495 ND_PRINT((ndo, "%s", tstr)); in print_cstring()
498 ND_PRINT((ndo, "%c", *cp++)); in print_cstring()
504 nbp_tuple_print(netdissect_options *ndo, in nbp_tuple_print() argument
511 ND_PRINT((ndo, "%s", tstr)); in nbp_tuple_print()
514 tpn = nbp_name_print(ndo, tp, ep); in nbp_tuple_print()
518 ND_PRINT((ndo, "(%d)", tp->enumerator)); in nbp_tuple_print()
522 ND_PRINT((ndo, " %d", tp->skt)); in nbp_tuple_print()
526 ND_PRINT((ndo, " [addr=%s]", in nbp_tuple_print()
527 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), tp->node))); in nbp_tuple_print()
533 nbp_name_print(netdissect_options *ndo, in nbp_name_print() argument
538 ND_PRINT((ndo, " ")); in nbp_name_print()
541 ND_PRINT((ndo, "\"")); in nbp_name_print()
542 if ((cp = print_cstring(ndo, cp, ep)) != NULL) { in nbp_name_print()
544 ND_PRINT((ndo, ":")); in nbp_name_print()
545 if ((cp = print_cstring(ndo, cp, ep)) != NULL) { in nbp_name_print()
547 ND_PRINT((ndo, "@")); in nbp_name_print()
548 if ((cp = print_cstring(ndo, cp, ep)) != NULL) in nbp_name_print()
549 ND_PRINT((ndo, "\"")); in nbp_name_print()
567 ataddr_string(netdissect_options *ndo, in ataddr_string() argument
580 if (first && (first = 0, !ndo->ndo_nflag) in ataddr_string()
601 tp->nxt = newhnamemem(ndo); in ataddr_string()
604 (*ndo->ndo_error)(ndo, in ataddr_string()
619 tp->nxt = newhnamemem(ndo); in ataddr_string()
624 (*ndo->ndo_error)(ndo, in ataddr_string()
630 tp->nxt = newhnamemem(ndo); in ataddr_string()
637 (*ndo->ndo_error)(ndo, "ataddr_string: strdup(nambuf)"); in ataddr_string()
651 ddpskt_string(netdissect_options *ndo, in ddpskt_string() argument
656 if (ndo->ndo_nflag) { in ddpskt_string()