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