You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
im trying to capture packets and im using open_live(timeout 0) with dispatch instead of next, and I dont know why but its sniffing only a few packets and then close pip.
my code:
import pcapy
import threading
import time
from pcapy import open_live, PcapError
Hi,
as far as I know, this is expected behaviour: while next process single packet, dispatch allows you to run a callback for all currently available packets, and then it returns. So you need to add a cycle around dispatch call, a while loop for example:
while condition:
packets_reader.dispatch(-1, parse_eth_packet_hndlr)
Hi,
im trying to capture packets and im using open_live(timeout 0) with dispatch instead of next, and I dont know why but its sniffing only a few packets and then close pip.
my code:
pcapy version:pcapy-0.11.5.dev0
python version: 2.7
please advice
The text was updated successfully, but these errors were encountered: