File libpcap-1.0.0-s390.patch of Package libpcap

--- pcap-linux.c
+++ pcap-linux.c
@@ -1752,6 +1752,9 @@
 			else
 				return 0;	/* try old mechanism */
 		}
+		/* Hack to make things work on s390 ctc interfaces */
+		if (strncmp("ctc", device, 3) == 0)
+			handle->linktype = DLT_EN10MB;
 	} else {
 		/*
 		 * This is cooked mode.
openSUSE Build Service is sponsored by