Changeset 909:4fb45aa8b7ed

Show
Ignore:
Timestamp:
09/12/08 14:02:13 (4 months ago)
Author:
Phil <phil@secdev.org>
Message:

Have scapy run even without pcap or dnet (no injection/sniffing)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • scapy/arch/pcapdnet.py

    r892 r909  
    142142            log_loading.error("Unable to import dnet module: %s" % e) 
    143143            conf.use_dnet = False 
     144            def get_if_raw_hwaddr(iff): 
     145                "dummy" 
     146                return (0,"\0\0\0\0\0\0") 
     147            def get_if_raw_addr(iff): 
     148                "dummy" 
     149                return "\0\0\0\0" 
    144150        else: 
    145151            raise