예제 #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()