From d38b3b4cd103c10430d06af58d87062da5ccde8f Mon Sep 17 00:00:00 2001 From: rpm-build Date: Aug 25 2020 09:02:44 +0000 Subject: 0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch patch_name: 0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch present_in_specfile: true location_in_specfile: 3 --- diff --git a/pcap-linux.c b/pcap-linux.c index 70334b3..afcaea7 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -3835,6 +3835,10 @@ activate_new(pcap_t *handle) handle->linktype = DLT_LINUX_SLL; } + /* Hack to make things work on s390 ctc interfaces */ + if (strncmp("ctc", device, 3) == 0) + handle->linktype = DLT_EN10MB; + handlep->ifindex = iface_get_id(sock_fd, device, handle->errbuf); if (handlep->ifindex == -1) {