https://bugs.winehq.org/show_bug.cgi?id=53104
Bug ID: 53104 Summary: Wireshark can't start capturing packets Product: Wine Version: 7.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wpcap Assignee: wine-bugs@winehq.org Reporter: rpisl@seznam.cz Distribution: ---
Created attachment 72539 --> https://bugs.winehq.org/attachment.cgi?id=72539 Patch for wpcap
While testing bug 53066 I just wanted to find out what would be needed to make Wireshark working in Wine. There are two obvious problems:
1. pcap_create() doesn't translate interface identifier to the real name 2. pcap_dispatch() is not implemented
I fixed these problems, however, packet window still remains empty after capture is started while the temporary capture file is filled with captured packets. If this temporary file is later opened, Wireshark shows all packets captured.
Attached is the patch if someone wants to push this further. "setcap cap_net_raw,cap_net_admin=eip wine64-preloader" is needed to give Wine permissions to capture packets.