Searched refs:hwaddr (Results 1 – 1 of 1) sorted by relevance
217 def SetInterfaceHWAddr(ifname, hwaddr): argument219 hwaddr = hwaddr.replace(":", "")220 hwaddr = hwaddr.decode("hex")221 if len(hwaddr) != 6:222 raise ValueError("Unknown hardware address length %d" % len(hwaddr))223 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr)