X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/1fe6e66ecec3fb7a7cc729038012cbb264542331..a7a76012a129ffefb64f102948db63fbc715e45e:/print-usb.c diff --git a/print-usb.c b/print-usb.c index 75f78fc9..04862881 100644 --- a/print-usb.c +++ b/print-usb.c @@ -19,14 +19,15 @@ * */ -#define NETDISSECT_REWORKED +/* \summary: USB printer */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include -#include "interface.h" +#include "netdissect.h" #if defined(HAVE_PCAP_USB_H) && defined(DLT_USB_LINUX) @@ -134,8 +135,8 @@ usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh) * is the number of bytes actually captured. */ u_int -usb_linux_48_byte_print(netdissect_options *ndo, const struct pcap_pkthdr *h, - register const u_char *p) +usb_linux_48_byte_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, + register const u_char *p) { if (h->caplen < sizeof(pcap_usb_header)) { ND_PRINT((ndo, "%s", tstr)); @@ -157,8 +158,8 @@ usb_linux_48_byte_print(netdissect_options *ndo, const struct pcap_pkthdr *h, * is the number of bytes actually captured. */ u_int -usb_linux_64_byte_print(netdissect_options *ndo, const struct pcap_pkthdr *h, - register const u_char *p) +usb_linux_64_byte_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, + register const u_char *p) { if (h->caplen < sizeof(pcap_usb_header_mmapped)) { ND_PRINT((ndo, "%s", tstr));