Lines Matching refs:ndo

95 ether_hdr_print(netdissect_options *ndo,  in ether_hdr_print()  argument
103 (void)ND_PRINT((ndo, "%s > %s", in ether_hdr_print()
108 if (!ndo->ndo_qflag) { in ether_hdr_print()
110 (void)ND_PRINT((ndo, ", 802.3")); in ether_hdr_print()
112 (void)ND_PRINT((ndo, ", ethertype %s (0x%04x)", in ether_hdr_print()
117 (void)ND_PRINT((ndo, ", 802.3")); in ether_hdr_print()
119 … (void)ND_PRINT((ndo, ", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ether_type))); in ether_hdr_print()
122 (void)ND_PRINT((ndo, ", length %u: ", length)); in ether_hdr_print()
132 ether_print(netdissect_options *ndo, in ether_print() argument
134 …void (*print_encap_header)(netdissect_options *ndo, const u_char *), const u_char *encap_header_ar… in ether_print() argument
142 ND_PRINT((ndo, "[|ether]")); in ether_print()
146 if (ndo->ndo_eflag) { in ether_print()
148 (*print_encap_header)(ndo, encap_header_arg); in ether_print()
149 ether_hdr_print(ndo, p, length); in ether_print()
169 if (!ndo->ndo_eflag) { in ether_print()
171 (*print_encap_header)(ndo, encap_header_arg); in ether_print()
172 ether_hdr_print(ndo, (u_char *)ep, orig_length); in ether_print()
175 if (!ndo->ndo_suppress_default_print) in ether_print()
176 ndo->ndo_default_print(ndo, p, caplen); in ether_print()
187 ND_PRINT((ndo, "[|vlan]")); in ether_print()
190 if (ndo->ndo_eflag) { in ether_print()
193 ND_PRINT((ndo, "vlan %u, p %u%s, ", in ether_print()
200 if (ndo->ndo_eflag && ether_type > ETHERMTU) in ether_print()
201 ND_PRINT((ndo, "ethertype %s, ", tok2str(ethertype_values,"0x%04x", ether_type))); in ether_print()
220 if (!ndo->ndo_eflag) { in ether_print()
222 (*print_encap_header)(ndo, encap_header_arg); in ether_print()
223 ether_hdr_print(ndo, (u_char *)ep, orig_length); in ether_print()
226 if (!ndo->ndo_suppress_default_print) in ether_print()
227 ndo->ndo_default_print(ndo, p, caplen); in ether_print()
230 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) { in ether_print()
232 if (!ndo->ndo_eflag) { in ether_print()
234 (*print_encap_header)(ndo, encap_header_arg); in ether_print()
235 ether_hdr_print(ndo, (u_char *)ep, orig_length); in ether_print()
238 if (!ndo->ndo_suppress_default_print) in ether_print()
239 ndo->ndo_default_print(ndo, p, caplen); in ether_print()
251 ether_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, in ether_if_print() argument
254 ether_print(ndo, p, h->len, h->caplen, NULL, NULL); in ether_if_print()
269 netanalyzer_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, in netanalyzer_if_print() argument
281 ether_print(ndo, p + 4, h->len - 4, h->caplen - 4, NULL, NULL); in netanalyzer_if_print()
297 netanalyzer_transparent_if_print(netdissect_options *ndo, in netanalyzer_transparent_if_print() argument
311 ether_print(ndo, p + 12, h->len - 12, h->caplen - 12, NULL, NULL); in netanalyzer_transparent_if_print()
324 ethertype_print(netdissect_options *ndo, in ethertype_print() argument
331 ip_print(ndo, p, length); in ethertype_print()
336 ip6_print(ndo, p, length); in ethertype_print()
342 arp_print(ndo, p, length, caplen); in ethertype_print()
350 if (ndo->ndo_vflag) in ethertype_print()
360 ND_PRINT((ndo, "(NOV-ETHII) ")); in ethertype_print()
376 eap_print(ndo, p, length); in ethertype_print()
380 rrcp_print(ndo, p - 14 , length + 14); in ethertype_print()
416 tipc_print(ndo, p, length, caplen); in ethertype_print()
420 msnlb_print(ndo, p); in ethertype_print()
425 geonet_print(ndo, p-14, p, length); in ethertype_print()
429 calm_fast_print(ndo, p-14, p, length); in ethertype_print()