X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/32e24ead3b2a171e5f5eff50d7231c2514eda9b4..6d3b0e4599c5aa922bba42e53b038b51d9024a62:/print-fddi.c diff --git a/print-fddi.c b/print-fddi.c index d73d92d6..fb8d3ed5 100644 --- a/print-fddi.c +++ b/print-fddi.c @@ -261,7 +261,7 @@ fddi_hdr_print(netdissect_options *ndo, dstname = etheraddr_string(ndo, fdst); if (!ndo->ndo_qflag) - print_fddi_fc(ndo, EXTRACT_U_1(fddip->fddi_fc)); + print_fddi_fc(ndo, GET_U_1(fddip->fddi_fc)); ND_PRINT("%s > %s, length %u: ", srcname, dstname, length); @@ -288,7 +288,7 @@ fddi_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) return (caplen); } - fc = EXTRACT_U_1(fddip->fddi_fc); + fc = GET_U_1(fddip->fddi_fc); /* * Get the FDDI addresses into a canonical form @@ -342,9 +342,9 @@ fddi_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) * 'h->len' is the length of the packet off the wire, and 'h->caplen' * is the number of bytes actually captured. */ -u_int +void fddi_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) { - ndo->ndo_protocol = "fddi_if"; - return (fddi_print(ndo, p, h->len, h->caplen)); + ndo->ndo_protocol = "fddi"; + ndo->ndo_ll_hdr_len += fddi_print(ndo, p, h->len, h->caplen); }