/* \summary: USB printer */
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
#include "netdissect.h"
#include "extract.h"
nd_byte pad[4];
} usb_isodesc;
-static const char tstr[] = "[|usb]";
/* returns direction: 1=inbound 2=outbound -1=invalid */
static int
usb_linux_48_byte_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
const u_char *p)
{
+ ndo->ndo_protocol = "usb_linux_48_byte_if";
if (h->caplen < sizeof(pcap_usb_header)) {
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return(sizeof(pcap_usb_header));
}
usb_linux_64_byte_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
const u_char *p)
{
+ ndo->ndo_protocol = "usb_linux_64_byte_if";
if (h->caplen < sizeof(pcap_usb_header_mmapped)) {
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return(sizeof(pcap_usb_header_mmapped));
}