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:
parent
b57b1b99ba
commit
efd52d96bd
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue