Merge valid_mac_or_ip