Projects
openEuler:24.03:SP1:Everything:64G
libpcap
_service:tar_scm:0003-pcap-linux-apparently-ctc...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch of Package libpcap
From b9fa92532328daad84766753422e8a21fd474e6f Mon Sep 17 00:00:00 2001 From: Michal Sekletar <msekleta@redhat.com> Date: Mon, 29 Sep 2014 08:37:25 +0200 Subject: [PATCH 3/4] pcap-linux: apparently ctc interfaces on s390 has ethernet DLT --- pcap-linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcap-linux.c b/pcap-linux.c index 878f27f..6917203 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -2474,6 +2474,10 @@ activate_pf_packet(pcap_t *handle, int is_any_device) } } + /* 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) { -- 2.23.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2