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