Lines Matching refs:ndo

65 static const struct atNBPtuple *nbp_tuple_print(netdissect_options *ndo, const struct atNBPtuple *,
78 ltalk_if_print(netdissect_options *ndo, in ltalk_if_print() argument
81 return (llap_print(ndo, p, h->caplen)); in ltalk_if_print()
88 llap_print(netdissect_options *ndo, in llap_print() argument
98 ND_PRINT((ndo, " [|llap %u]", length)); in llap_print()
109 ND_PRINT((ndo, " [|sddp %u]", length)); in llap_print()
113 ND_PRINT((ndo, "%s.%s", in llap_print()
114 ataddr_string(ndo, 0, lp->src), ddpskt_string(ndo, sdp->srcSkt))); in llap_print()
115 ND_PRINT((ndo, " > %s.%s:", in llap_print()
116 ataddr_string(ndo, 0, lp->dst), ddpskt_string(ndo, sdp->dstSkt))); in llap_print()
120 ddp_print(ndo, bp, length, sdp->type, 0, lp->src, sdp->srcSkt); in llap_print()
125 ND_PRINT((ndo, " [|ddp %u]", length)); in llap_print()
130 ND_PRINT((ndo, "%s.%s", ataddr_string(ndo, snet, dp->srcNode), in llap_print()
131 ddpskt_string(ndo, dp->srcSkt))); in llap_print()
132 ND_PRINT((ndo, " > %s.%s:", in llap_print()
133 ataddr_string(ndo, EXTRACT_16BITS(&dp->dstNet), dp->dstNode), in llap_print()
134 ddpskt_string(ndo, dp->dstSkt))); in llap_print()
138 ddp_print(ndo, bp, length, dp->type, snet, dp->srcNode, dp->srcSkt); in llap_print()
148 ND_PRINT((ndo, "%d > %d at-lap#%d %u", in llap_print()
161 atalk_print(netdissect_options *ndo, in atalk_print() argument
167 if(!ndo->ndo_eflag) in atalk_print()
168 ND_PRINT((ndo, "AT ")); in atalk_print()
171 ND_PRINT((ndo, " [|ddp %u]", length)); in atalk_print()
176 ND_PRINT((ndo, "%s.%s", ataddr_string(ndo, snet, dp->srcNode), in atalk_print()
177 ddpskt_string(ndo, dp->srcSkt))); in atalk_print()
178 ND_PRINT((ndo, " > %s.%s: ", in atalk_print()
179 ataddr_string(ndo, EXTRACT_16BITS(&dp->dstNet), dp->dstNode), in atalk_print()
180 ddpskt_string(ndo, dp->dstSkt))); in atalk_print()
183 ddp_print(ndo, bp, length, dp->type, snet, dp->srcNode, dp->srcSkt); in atalk_print()
188 aarp_print(netdissect_options *ndo, in aarp_print() argument
193 #define AT(member) ataddr_string(ndo, (ap->member[1]<<8)|ap->member[2],ap->member[3]) in aarp_print()
195 ND_PRINT((ndo, "aarp ")); in aarp_print()
203 ND_PRINT((ndo, "who-has %s tell %s", AT(pdaddr), AT(psaddr))); in aarp_print()
207 ND_PRINT((ndo, "reply %s is-at %s", AT(psaddr), etheraddr_string(ndo, ap->hsaddr))); in aarp_print()
211 ND_PRINT((ndo, "probe %s tell %s", AT(pdaddr), AT(psaddr))); in aarp_print()
214 ND_PRINT((ndo, "len %u op %u htype %u ptype %#x halen %u palen %u", in aarp_print()
223 ddp_print(netdissect_options *ndo, in ddp_print() argument
231 nbp_print(ndo, (const struct atNBP *)bp, length, snet, snode, skt); in ddp_print()
235 atp_print(ndo, (const struct atATP *)bp, length); in ddp_print()
239 eigrp_print(ndo, bp, length); in ddp_print()
243 ND_PRINT((ndo, " at-%s %d", tok2str(type2str, NULL, t), length)); in ddp_print()
249 atp_print(netdissect_options *ndo, in atp_print() argument
255 if ((const u_char *)(ap + 1) > ndo->ndo_snapend) { in atp_print()
257 ND_PRINT((ndo, "%s", tstr)); in atp_print()
261 ND_PRINT((ndo, " [|atp %u]", length)); in atp_print()
268 ND_PRINT((ndo, " atp-req%s %d", in atp_print()
272 atp_bitmap_print(ndo, ap->bitmap); in atp_print()
275 ND_PRINT((ndo, " [len=%u]", length)); in atp_print()
279 ND_PRINT((ndo, " [EOM]")); in atp_print()
282 ND_PRINT((ndo, " [STS]")); in atp_print()
285 ND_PRINT((ndo, " [EOM,STS]")); in atp_print()
291 ND_PRINT((ndo, " atp-resp%s%d:%d (%u)", in atp_print()
296 ND_PRINT((ndo, " [XO]")); in atp_print()
299 ND_PRINT((ndo, " [STS]")); in atp_print()
302 ND_PRINT((ndo, " [XO,STS]")); in atp_print()
308 ND_PRINT((ndo, " atp-rel %d", EXTRACT_16BITS(&ap->transID))); in atp_print()
310 atp_bitmap_print(ndo, ap->bitmap); in atp_print()
314 ND_PRINT((ndo, " [len=%u]", length)); in atp_print()
320 ND_PRINT((ndo, "%cXO", c)); in atp_print()
324 ND_PRINT((ndo, "%cEOM", c)); in atp_print()
328 ND_PRINT((ndo, "%cSTS", c)); in atp_print()
331 ND_PRINT((ndo, "]")); in atp_print()
336 ND_PRINT((ndo, " atp-0x%x %d (%u)", ap->control, in atp_print()
342 ND_PRINT((ndo, " 0x%x", data)); in atp_print()
346 atp_bitmap_print(netdissect_options *ndo, in atp_bitmap_print() argument
361 ND_PRINT((ndo, "%c%d", c, i)); in atp_bitmap_print()
366 ND_PRINT((ndo, ">")); in atp_bitmap_print()
371 ND_PRINT((ndo, "<0-%d>", i - 1)); in atp_bitmap_print()
373 ND_PRINT((ndo, "<0>")); in atp_bitmap_print()
378 nbp_print(netdissect_options *ndo, in nbp_print() argument
388 ND_PRINT((ndo, " truncated-nbp %u", length)); in nbp_print()
395 ND_PRINT((ndo, " truncated-nbp %u", length + nbpHeaderSize)); in nbp_print()
399 ep = ndo->ndo_snapend; in nbp_print()
401 ND_PRINT((ndo, "%s", tstr)); in nbp_print()
408 ND_PRINT((ndo, i == nbpLkUp? " nbp-lkup %d:":" nbp-brRq %d:", np->id)); in nbp_print()
410 ND_PRINT((ndo, "%s", tstr)); in nbp_print()
413 (void)nbp_name_print(ndo, tp, ep); in nbp_print()
420 ND_PRINT((ndo, " [ntup=%d]", np->control & 0xf)); in nbp_print()
422 ND_PRINT((ndo, " [enum=%d]", tp->enumerator)); in nbp_print()
425 ND_PRINT((ndo, " [addr=%s.%d]", in nbp_print()
426 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), in nbp_print()
431 ND_PRINT((ndo, " nbp-reply %d:", np->id)); in nbp_print()
435 tp = nbp_tuple_print(ndo, tp, ep, snet, snode, skt); in nbp_print()
439 ND_PRINT((ndo, " nbp-0x%x %d (%u)", np->control, np->id, length)); in nbp_print()
446 print_cstring(netdissect_options *ndo, in print_cstring() argument
452 ND_PRINT((ndo, "%s", tstr)); in print_cstring()
459 ND_PRINT((ndo, "[len=%u]", length)); in print_cstring()
464 ND_PRINT((ndo, "%s", tstr)); in print_cstring()
467 ND_PRINT((ndo, "%c", *cp++)); in print_cstring()
473 nbp_tuple_print(netdissect_options *ndo, in nbp_tuple_print() argument
480 ND_PRINT((ndo, "%s", tstr)); in nbp_tuple_print()
483 tpn = nbp_name_print(ndo, tp, ep); in nbp_tuple_print()
487 ND_PRINT((ndo, "(%d)", tp->enumerator)); in nbp_tuple_print()
491 ND_PRINT((ndo, " %d", tp->skt)); in nbp_tuple_print()
495 ND_PRINT((ndo, " [addr=%s]", in nbp_tuple_print()
496 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), tp->node))); in nbp_tuple_print()
502 nbp_name_print(netdissect_options *ndo, in nbp_name_print() argument
507 ND_PRINT((ndo, " ")); in nbp_name_print()
510 ND_PRINT((ndo, "\"")); in nbp_name_print()
511 if ((cp = print_cstring(ndo, cp, ep)) != NULL) { in nbp_name_print()
513 ND_PRINT((ndo, ":")); in nbp_name_print()
514 if ((cp = print_cstring(ndo, cp, ep)) != NULL) { in nbp_name_print()
516 ND_PRINT((ndo, "@")); in nbp_name_print()
517 if ((cp = print_cstring(ndo, cp, ep)) != NULL) in nbp_name_print()
518 ND_PRINT((ndo, "\"")); in nbp_name_print()
536 ataddr_string(netdissect_options *ndo, in ataddr_string() argument
549 if (first && (first = 0, !ndo->ndo_nflag) in ataddr_string()
612 ddpskt_string(netdissect_options *ndo, in ddpskt_string() argument
617 if (ndo->ndo_nflag) { in ddpskt_string()