added set_mac function to be used with TAP devices