I'm using libpcap on Linux to capture network traffic from a wireless adapter (2.4 GHz). The
pcap_setdirection seems to allow you to setup the capture device so that it ignores traffic originating from the device, but I get an error when I try to set it to return incoming traffic only.
My libpcap version appears to be 1.9.1, so directional capture should be supported. I know wired Ethernet has transmit and receive lines, which could be used to distinguish outgoing data from incoming data, but I'm not sure if WiFi adapters have a way to determine which device the traffic came from (self v. others).
Are there any special hardware or kernel requirements for restricting the traffic direction with libpcap (no-WiFi, kernel settings, adapter support, etc.)?