mirror of https://github.com/secdev/scapy.git
top sniff() on empty s.recv()
- improved from Mattias Ahlbäck original patch
This commit is contained in:
parent
7f45014629
commit
d4a09f4ca9
|
@ -608,7 +608,10 @@ interfaces)
|
|||
sel = select(sniff_sockets, [], [], remain)
|
||||
for s in sel[0]:
|
||||
p = s.recv()
|
||||
if p is not None:
|
||||
if p is None and offline is not None:
|
||||
stop_event = True
|
||||
break
|
||||
elif p is not None:
|
||||
if lfilter and not lfilter(p):
|
||||
continue
|
||||
if s in label:
|
||||
|
|
Loading…
Reference in New Issue