mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
4297f4f901
Update libpcap to upstream release 1.8.1 Change the name from libpcap.so.1.3 to libpcap.so.1 Remove parts of patch 201 which moved code among src files. Import patch 204 from Debian to update the USB path. Signed-off-by: Paul Wassi <p.wassi@gmx.at> Signed-off-by: Felix Fietkau <nbd@nbd.name> [fix parallel build bug]
27 lines
479 B
Diff
27 lines
479 B
Diff
--- a/pcap-common.c
|
|
+++ b/pcap-common.c
|
|
@@ -1447,14 +1447,23 @@ swap_pseudo_headers(int linktype, struct
|
|
break;
|
|
|
|
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;
|
|
}
|