I'm using scapy to make ansyncronous sniffer throught an usb-ethernet adapter.
from scapy.all import *
t = AsyncSniffer(iface="ASIX AX88772B USB2.0 to Fast Ethernet Adapter",filter="ether proto 0x5337")
t.start()
print("hey")
time.sleep(10)
packets= t.stop()
print (packets.summary())
doing so I'm getting the following warning message:
WARNING: WinPcap is now deprecated (not maintained). Please use Npcap instead
I've tried to install Npcap but honestly I'ven't understood how to do the same async acquisition using Npcap instead.