- Dropped patches not required after review * libpcap-1.0.0-pcap-bpf.patch * libpcap-1.5.2-filter-fix.patch - Reference of the pull request for the rest of the patches * https://github.com/the-tcpdump-group/libpcap/issues/196 - Changed libpcap-1.0.0-s390.patch to the git formatted one OBS-URL: https://build.opensuse.org/request/show/457393 OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=53
29 lines
762 B
Diff
29 lines
762 B
Diff
From b9fa92532328daad84766753422e8a21fd474e6f Mon Sep 17 00:00:00 2001
|
|
From: Michal Sekletar <msekleta@redhat.com>
|
|
Date: Mon, 29 Sep 2014 08:37:25 +0200
|
|
Subject: [PATCH 3/4] pcap-linux: apparently ctc interfaces on s390 has
|
|
ethernet DLT
|
|
|
|
---
|
|
pcap-linux.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/pcap-linux.c b/pcap-linux.c
|
|
index 900ebbc..58292c3 100644
|
|
--- a/pcap-linux.c
|
|
+++ b/pcap-linux.c
|
|
@@ -3197,6 +3197,10 @@ activate_new(pcap_t *handle)
|
|
handle->linktype = DLT_LINUX_SLL;
|
|
}
|
|
|
|
+ /* Hack to make things work on s390 ctc interfaces */
|
|
+ if (strncmp("ctc", device, 3) == 0)
|
|
+ handle->linktype = DLT_EN10MB;
|
|
+
|
|
handlep->ifindex = iface_get_id(sock_fd, device,
|
|
handle->errbuf);
|
|
if (handlep->ifindex == -1) {
|
|
--
|
|
1.8.3.1
|
|
|