Blame SOURCES/0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch

6a9a48
From b9fa92532328daad84766753422e8a21fd474e6f Mon Sep 17 00:00:00 2001
6a9a48
From: Michal Sekletar <msekleta@redhat.com>
6a9a48
Date: Mon, 29 Sep 2014 08:37:25 +0200
6a9a48
Subject: [PATCH 3/4] pcap-linux: apparently ctc interfaces on s390 has
6a9a48
 ethernet DLT
6a9a48
6a9a48
---
6a9a48
 pcap-linux.c | 4 ++++
6a9a48
 1 file changed, 4 insertions(+)
6a9a48
6a9a48
diff --git a/pcap-linux.c b/pcap-linux.c
6a9a48
index 900ebbc..58292c3 100644
6a9a48
--- a/pcap-linux.c
6a9a48
+++ b/pcap-linux.c
6a9a48
@@ -3197,6 +3197,10 @@ activate_new(pcap_t *handle)
6a9a48
 				handle->linktype = DLT_LINUX_SLL;
6a9a48
 		}
6a9a48
 
6a9a48
+		/* Hack to make things work on s390 ctc interfaces */
6a9a48
+		if (strncmp("ctc", device, 3) == 0)
6a9a48
+			handle->linktype = DLT_EN10MB;
6a9a48
+
6a9a48
 		handlep->ifindex = iface_get_id(sock_fd, device,
6a9a48
 		    handle->errbuf);
6a9a48
 		if (handlep->ifindex == -1) {
6a9a48
-- 
6a9a48
1.8.3.1
6a9a48