def set_mac(self, newmac):
macbytes = [int(i, <NUM_LIT:16>) for i in newmac.split('<STR_LIT::>')]<EOL>ifreq = struct.pack('<STR_LIT>', self.name, AF_UNIX, *macbytes)<EOL>fcntl.ioctl(sockfd, SIOCSIFHWADDR, ifreq)<EOL>
Set the device's mac address. Device must be down for this to
            succeed.