Blame SOURCES/libpcap-s390.patch

6730c1
diff -up libpcap-1.5.0/pcap-linux.c.s390 libpcap-1.5.0/pcap-linux.c
6730c1
--- libpcap-1.5.0/pcap-linux.c.s390	2013-11-08 08:05:02.608387300 +0100
6730c1
+++ libpcap-1.5.0/pcap-linux.c	2013-11-08 08:08:49.597405024 +0100
6730c1
@@ -3181,6 +3181,10 @@ activate_new(pcap_t *handle)
6730c1
 				handle->linktype = DLT_LINUX_SLL;
6730c1
 		}
6730c1
 
6730c1
+		/* Hack to make things work on s390 ctc interfaces */
6730c1
+		if (strncmp("ctc", device, 3) == 0)
6730c1
+			handle->linktype = DLT_EN10MB;
6730c1
+
6730c1
 		handlep->ifindex = iface_get_id(sock_fd, device,
6730c1
 		    handle->errbuf);
6730c1
 		if (handlep->ifindex == -1) {