libpcap/libpcap-1.0.0-s390.patch

13 lines
284 B
Diff

--- 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.