Lines Matching defs:ndo

61 static const struct atNBPtuple *nbp_tuple_print(netdissect_options *ndo, const struct atNBPtuple *,
74 ltalk_if_print(netdissect_options *ndo,
79 ndo->ndo_protocol = "ltalk";
80 hdrlen = llap_print(ndo, p, h->len);
83 ndo->ndo_ll_hdr_len += h->caplen;
86 ndo->ndo_ll_hdr_len += hdrlen;
93 llap_print(netdissect_options *ndo,
102 ndo->ndo_protocol = "llap";
108 nd_print_trunc(ndo);
128 ataddr_string(ndo, 0, GET_U_1(lp->src)),
129 ddpskt_string(ndo, GET_U_1(sdp->srcSkt)));
131 ataddr_string(ndo, 0, GET_U_1(lp->dst)),
132 ddpskt_string(ndo, GET_U_1(sdp->dstSkt)));
136 ddp_print(ndo, bp, length, GET_U_1(sdp->type), 0,
152 ataddr_string(ndo, snet, GET_U_1(dp->srcNode)),
153 ddpskt_string(ndo, GET_U_1(dp->srcSkt)));
155 ataddr_string(ndo, GET_BE_U_2(dp->dstNet), GET_U_1(dp->dstNode)),
156 ddpskt_string(ndo, GET_U_1(dp->dstSkt)));
160 ddp_print(ndo, bp, length, GET_U_1(dp->type), snet,
185 atalk_print(netdissect_options *ndo,
191 ndo->ndo_protocol = "atalk";
192 if(!ndo->ndo_eflag)
205 ND_PRINT("%s.%s", ataddr_string(ndo, snet, GET_U_1(dp->srcNode)),
206 ddpskt_string(ndo, GET_U_1(dp->srcSkt)));
208 ataddr_string(ndo, GET_BE_U_2(dp->dstNet), GET_U_1(dp->dstNode)),
209 ddpskt_string(ndo, GET_U_1(dp->dstSkt)));
212 ddp_print(ndo, bp, length, GET_U_1(dp->type), snet,
218 aarp_print(netdissect_options *ndo,
223 #define AT(member) ataddr_string(ndo, (ap->member[1]<<8)|ap->member[2],ap->member[3])
225 ndo->ndo_protocol = "aarp";
230 nd_print_trunc(ndo);
263 ddp_print(netdissect_options *ndo,
271 nbp_print(ndo, (const struct atNBP *)bp, length, snet, snode, skt);
275 atp_print(ndo, (const struct atATP *)bp, length);
279 eigrp_print(ndo, bp, length);
289 atp_print(netdissect_options *ndo,
295 if ((const u_char *)(ap + 1) > ndo->ndo_snapend) {
297 nd_print_trunc(ndo);
313 atp_bitmap_print(ndo, GET_U_1(ap->bitmap));
352 atp_bitmap_print(ndo, GET_U_1(ap->bitmap));
387 atp_bitmap_print(netdissect_options *ndo,
418 nbp_print(netdissect_options *ndo,
440 ep = ndo->ndo_snapend;
442 nd_print_trunc(ndo);
453 nd_print_trunc(ndo);
456 (void)nbp_name_print(ndo, tp, ep);
470 ataddr_string(ndo, GET_BE_U_2(tp->net),
480 tp = nbp_tuple_print(ndo, tp, ep, snet, snode, skt);
492 print_cstring(netdissect_options *ndo,
498 nd_print_trunc(ndo);
511 nd_print_trunc(ndo);
514 fn_print_char(ndo, GET_U_1(cp));
522 nbp_tuple_print(netdissect_options *ndo,
529 nd_print_trunc(ndo);
532 tpn = nbp_name_print(ndo, tp, ep);
546 ataddr_string(ndo, GET_BE_U_2(tp->net), GET_U_1(tp->node)));
552 nbp_name_print(netdissect_options *ndo,
561 if ((cp = print_cstring(ndo, cp, ep)) != NULL) {
564 if ((cp = print_cstring(ndo, cp, ep)) != NULL) {
567 if ((cp = print_cstring(ndo, cp, ep)) != NULL)
586 ataddr_string(netdissect_options *ndo,
598 if (!ndo->ndo_nflag) {
632 tp->nxt = newhnamemem(ndo);
635 (*ndo->ndo_error)(ndo,
656 tp->nxt = newhnamemem(ndo);
661 (*ndo->ndo_error)(ndo, S_ERR_ND_MEM_ALLOC,
667 tp->nxt = newhnamemem(ndo);
674 (*ndo->ndo_error)(ndo, S_ERR_ND_MEM_ALLOC,
689 ddpskt_string(netdissect_options *ndo,
694 if (ndo->ndo_nflag) {