Open amurzeau opened 11 months ago
Does this reproduce without Wine?
Hi,
Sorry the delay.
I've tested on Linux without Wine and I reproduce the behavior.
pcap_dispatch
does not receive packets sent by pcap_inject
on the same pcap_t handle.
But when using a different handle for pcap_dispatch
and pcap_inject
, pcap_dispatch
receive injected packets.
Hi,
I've found that on Linux, sent packets using pcap_sendpacket or pcap_inject are not captured by pcap_dispatch (using the same pcap instance).
I think I got the same as this older issue: https://github.com/the-tcpdump-group/libpcap/issues/400
I encountered it while testing a Windows application that use Winpcap under wine (which implements winpcap using libpcap).
Is there a way to still enable that ?
As an alternative, opening a different pcap handle works, one handle to send packets and another different handle to receive packet. This way, sent packets are captured by pcap_dispatch. Maybe that's the way to go then ?
Thanks !