mirror of
https://github.com/open-simh/simh.git
synced 2026-04-17 00:45:43 +00:00
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:
@@ -2609,6 +2609,11 @@ return SCPE_OK;
|
|||||||
t_stat eth_check_address_conflict (ETH_DEV* dev,
|
t_stat eth_check_address_conflict (ETH_DEV* dev,
|
||||||
ETH_MAC* const mac)
|
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);
|
return eth_check_address_conflict_ex (dev, mac, NULL, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user