Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Emulators
es40
0009-Show-pcap-errbuf-if-network-adapter-open-f...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0009-Show-pcap-errbuf-if-network-adapter-open-fails.patch of Package es40
From 57bc6b224e253fa86360bf94eaa651915769ea22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com> Date: Fri, 22 Dec 2023 20:31:59 +0100 Subject: [PATCH 09/10] Show pcap errbuf if network adapter open fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Klaus Kämpf <kkaempf@gmail.com> --- src/DEC21143.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DEC21143.cpp b/src/DEC21143.cpp index a1a13d0..2db19f2 100644 --- a/src/DEC21143.cpp +++ b/src/DEC21143.cpp @@ -339,7 +339,7 @@ void CDEC21143::init() if((fp = pcap_open_live(cfg, 65536 /*snaplen: capture entire packets */, 1 /*promiscuous */, 1 /*read timeout: 1ms. */, errbuf)) == NULL) // connect to pcap... #endif - FAILURE_1(Runtime, "Error opening adapter %s", cfg); + FAILURE_2(Runtime, "Error opening adapter %s: %s", cfg, errbuf); // set default mac = Digital ethernet prefix: 08-00-2B + hexified "ES40" + nic number state.mac[0] = 0x08; -- 2.45.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor