2015-09-03 13:14:56 +00:00
|
|
|
--- a/pcap-common.c
|
|
|
|
+++ b/pcap-common.c
|
2018-07-26 14:46:38 +00:00
|
|
|
@@ -1524,14 +1524,23 @@ swap_pseudo_headers(int linktype, struct
|
2016-12-10 09:56:22 +00:00
|
|
|
break;
|
2015-09-03 13:14:56 +00:00
|
|
|
|
|
|
|
case DLT_USB_LINUX:
|
|
|
|
+#ifndef PCAP_SUPPORT_USB
|
|
|
|
+ return;
|
|
|
|
+#endif
|
|
|
|
swap_linux_usb_header(hdr, data, 0);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLT_USB_LINUX_MMAPPED:
|
|
|
|
+#ifndef PCAP_SUPPORT_USB
|
|
|
|
+ return;
|
|
|
|
+#endif
|
|
|
|
swap_linux_usb_header(hdr, data, 1);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLT_NFLOG:
|
|
|
|
+#ifndef PCAP_SUPPORT_NETFILTER
|
|
|
|
+ return;
|
|
|
|
+#endif
|
|
|
|
swap_nflog_header(hdr, data);
|
|
|
|
break;
|
|
|
|
}
|