15
15
from scapy .arch .bpf .consts import BIOCGBLEN , BIOCGDLT , BIOCGSTATS , \
16
16
BIOCIMMEDIATE , BIOCPROMISC , BIOCSBLEN , BIOCSETIF , BIOCSHDRCMPLT , \
17
17
BPF_BUFFER_LENGTH , BIOCSDLT , DLT_IEEE802_11_RADIO
18
- from scapy .automaton import ObjectPipe
19
18
from scapy .config import conf
20
19
from scapy .consts import FREEBSD , NETBSD , DARWIN
21
20
from scapy .data import ETH_P_ALL
@@ -36,6 +35,7 @@ class _L2bpfSocket(SuperSocket):
36
35
""""Generic Scapy BPF Super Socket"""
37
36
38
37
desc = "read/write packets using BPF"
38
+ async_select_unrequired = True
39
39
40
40
def __init__ (self , iface = None , type = ETH_P_ALL , promisc = None , filter = None ,
41
41
nofilter = 0 , monitor = False ):
@@ -389,8 +389,6 @@ def bpf_select(fds_list, timeout=None):
389
389
select_fds .append (tmp_fd )
390
390
391
391
if select_fds :
392
- if len (select_fds ) == 1 and isinstance (select_fds [0 ], ObjectPipe ):
393
- return bpf_scks_buffered
394
392
# Call select for sockets with empty buffers
395
393
if timeout is None :
396
394
timeout = 0.05
0 commit comments