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

Explicitly import the function to remove the circular dependency

parent 5a5bea6a
No related branches found
No related tags found
No related merge requests found
......@@ -390,6 +390,7 @@ def in6_getLocalUniquePrefix():
j = int((tod - i)*(2**32))
tod = struct.pack("!II", i,j)
# TODO: Add some check regarding system address gathering
from scapy.arch import get_if_raw_hwaddr
rawmac = get_if_raw_hwaddr(conf.iface6)[1]
mac = ":".join(map(lambda x: "%.02x" % ord(x), list(rawmac)))
# construct modified EUI-64 ID
......
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