secdev / scapy

Scapy: the Python-based interactive packet manipulation program & library.
https://scapy.net
GNU General Public License v2.0
10.56k stars 2.01k forks source link

Send after sniff makes packet loss #4504

Open pu-learn opened 4 weeks ago

pu-learn commented 4 weeks ago

Brief description

I'm using asyncsniffer to sniff on 3 adapters on my pc. I create two packet to send in new sub-thread, both of them are sent once per second. When I send the first packet from adapter 1 to adapter 2, every packets can be sniffed. When I send the second packet from adapter 2 to adapter 1 after sending the first, both adapter 1 and 2 can only sniff the packets send from themselves, but none from peer adapter.

Scapy version

2.5.0

Python version

3.11

Operating system

Windows 10

Additional environment information

No response

How to reproduce

1.use asyncsniffer to sniff on adapter 1 and adapter 2 2.send packets with rate of 1 pps from adapter 1 to adapter 2. 3.send packets with rate of 1 pps from adapter 2 to adapter 1.

Actual result

both adapter 1 and 2 can only sniff the packets send from themselves, but none from peer adapter.

Expected result

Both adapters can sniff packets outbound and inbound

Related resources

No response

gpotter2 commented 2 weeks ago

Please provide a reproducible example, I'm not sure I understand the issue properly.