コード例 #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
ファイル: pcap.py プロジェクト: pegerto/libcap-python
def lookupdev():
  return _pcap.lookupdev()
コード例 #3
0
def lookupdev():
  return _pcap.lookupdev()