Skip to content
Snippets Groups Projects
Commit fc53ffdd authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Fix broken import on Windows

parent 35f97efc
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,9 @@ def str2mac(s):
return ("%02x:"*6)[:-1] % tuple(map(ord, s))
if not scapy.config.conf.use_pcap and not scapy.config.conf.use_dnet:
from scapy.arch.bpf.core import get_if_raw_addr
if not WINDOWS:
if not scapy.config.conf.use_pcap and not scapy.config.conf.use_dnet:
from scapy.arch.bpf.core import get_if_raw_addr
def get_if_addr(iff):
return socket.inet_ntoa(get_if_raw_addr(iff))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment