4d57c696b1
001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch dropped due to upstream 002-Add-missing-compiler_state_t-parameter.patch dropped due to upstream 202-protocol_api.patch dropped due to implemented upstream by another way upstream commit:55c690f6f8
and renamed via:697b1f7e9b
ead is the only user who use the protocol api, we have to use the new api since libpcap 1.9.0 Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
26 lines
479 B
Diff
26 lines
479 B
Diff
--- a/pcap-common.c
|
|
+++ b/pcap-common.c
|
|
@@ -1524,14 +1524,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;
|
|
}
|