Skip to content

Capturing injected packets not working on Linux #1208

Open
@amurzeau

Description

@amurzeau

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: #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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions