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

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