Skip to content
Snippets Groups Projects
Commit c3d2de91 authored by Pierre Lalet's avatar Pierre Lalet Committed by GitHub
Browse files

Merge pull request #369 from guedou/bpf_windows_broken

Fix broken import on Windows
parents 35f97efc fc53ffdd
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