示例#1
0
文件: pcap.py 项目: cortesi/packetpy
 def __init__(self, interface=None, snaplen=96, promisc=1, timeout=1000):
     """
         If no interface is specified, a suitable interface is automatically
         chosen.
     """
     _PcapFeed.__init__(self)
     if interface is None:
         try:
             interface = _pcap.lookupdev()
         #begin nocover
         except PcapError, val:
             raise PcapError(val)
示例#2
0
def lookupdev():
  return _pcap.lookupdev()
示例#3
0
def lookupdev():
  return _pcap.lookupdev()