Lines Matching defs:ndo

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