From 66439f18dc7ad4396c062dbeaa65d45ebce9aa5a Mon Sep 17 00:00:00 2001 From: Guillaume Valadon <guillaume.valadon@ssi.gouv.fr> Date: Wed, 6 Apr 2016 10:31:05 +0200 Subject: [PATCH] Explicitly import the function to remove the circular dependency --- scapy/utils6.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scapy/utils6.py b/scapy/utils6.py index 647efa8a..8e08872a 100644 --- a/scapy/utils6.py +++ b/scapy/utils6.py @@ -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 -- GitLab