ETHER: Explicitly allow MAC address to be the host interface MAC address

A warning will be issued unless an attach is done with the -Q switch.
This commit is contained in:
Mark Pizzolato 2019-01-22 13:36:19 -08:00
parent b57b1b99ba
commit efd52d96bd

View file

@ -2609,6 +2609,11 @@ return SCPE_OK;
t_stat eth_check_address_conflict (ETH_DEV* dev,
ETH_MAC* const mac)
{
char mac_string[32];
eth_mac_fmt(mac, mac_string);
if (0 == memcmp (mac, dev->host_nic_phy_hw_addr, sizeof *mac))
return sim_messagef (SCPE_OK, "Sharing the host NIC MAC address %s may cause unexpected behavior\n", mac_string);
return eth_check_address_conflict_ex (dev, mac, NULL, FALSE);
}