Skip to content
Snippets Groups Projects
Commit 2fc18534 authored by Pierre LALET's avatar Pierre LALET
Browse files

sndrcv(): fix pcap(y) compatibility

parent 71365d42
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,8 @@ def sndrcv(pks, pkt, timeout=None, inter=0, verbose=None, chainCC=False,
inp = bpf_select([pks])
if pks in inp:
r = pks.recv()
elif conf.use_pcap:
r = pks.nonblock_recv()
elif not isinstance(pks, StreamSocket) and (
FREEBSD or DARWIN or OPENBSD
):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment