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