LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libpcap-1.0.0-s390.patch of Package libpcap (Project home:Friseer:openSUSE:server)

Index: pcap-linux.c
===================================================================
--- pcap-linux.c.orig	2010-04-06 10:17:29.000000000 +0200
+++ pcap-linux.c	2010-04-06 10:17:51.000000000 +0200
@@ -2865,6 +2865,9 @@ activate_new(pcap_t *handle)
 			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 {
 		/*
 		 * The "any" device.