Skip to content
Snippets Groups Projects
Commit e1877114 authored by Pierre LALET's avatar Pierre LALET
Browse files

Python 3: use str for interface names

parent 4fd39a5a
No related branches found
No related tags found
No related merge requests found
......@@ -295,7 +295,8 @@ def in6_getifaddr():
tmp = i.split()
addr = struct.unpack('4s4s4s4s4s4s4s4s', tmp[0])
addr = scapy.utils6.in6_ptop(b':'.join(addr).decode())
ret.append((addr, int(tmp[3], 16), tmp[5])) # (addr, scope, iface)
# (addr, scope, iface)
ret.append((addr, int(tmp[3], 16), tmp[5].decode()))
return ret
def read_routes6():
......
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