Searched refs:hwaddr (Results 1 – 1 of 1) sorted by relevance
198 def SetInterfaceHWAddr(ifname, hwaddr): argument200 hwaddr = hwaddr.replace(":", "")201 hwaddr = hwaddr.decode("hex")202 if len(hwaddr) != 6:203 raise ValueError("Unknown hardware address length %d" % len(hwaddr))204 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr)