updated get_mac()

had a problem with when network adapter was still becoming active, added loop to continue until a packet is returned.