示例#1
0
 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)
示例#2
0
文件: pcapdnet.py 项目: commial/scapy
 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)
示例#3
0
 def fileno(self):
     if WINDOWS:
         log_loading.error("Cannot get selectable PCAP fd on Windows")
         return 0
     return pcap_get_selectable_fd(self.pcap)