libpcap/libpcap-s390.patch
Miroslav Lichvar cc1bd62ff1 auto-import libpcap-0.9.5-1.fc7 on branch devel from
libpcap-0.9.5-1.fc7.src.rpm
2006-11-28 11:40:49 +00:00

13 lines
378 B
Diff

--- libpcap-0.7.2/pcap-linux.c.s390 2003-02-26 07:45:32.000000000 +0100
+++ libpcap-0.7.2/pcap-linux.c 2003-02-27 16:48:48.000000000 +0100
@@ -1214,6 +1214,9 @@
fatal_err = 1;
break;
}
+ /* Hack to make things work on s390 ctc interfaces */
+ if (strncmp("ctc", device, 3) == 0)
+ handle->linktype = DLT_EN10MB;
} else {
/*
* This is cooked mode.