def fileno(self): if WINDOWS: log_loading.error("Cannot get selectable PCAP fd on Windows") return 0 else: # This does not exist under Windows return pcap_get_selectable_fd(self.pcap)
def fileno(self): if WINDOWS: log_loading.error("Cannot get selectable PCAP fd on Windows") return 0 else: # This does not exist under Windows from scapy.modules.winpcapy import pcap_get_selectable_fd return pcap_get_selectable_fd(self.pcap)
def fileno(self): if WINDOWS: log_loading.error("Cannot get selectable PCAP fd on Windows") return 0 return pcap_get_selectable_fd(self.pcap)