summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dc.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2004-08-14 21:43:37 +0000
committermarius <marius@FreeBSD.org>2004-08-14 21:43:37 +0000
commitcd9e845490f35e203d0b972430feab6499bb55d6 (patch)
treee93e32a033367a06e910444e3e45b701b5ff8e22 /sys/pci/if_dc.c
parentc14fee263230d98381c73b8c0b4f9cb9fb9cd54a (diff)
downloadFreeBSD-src-cd9e845490f35e203d0b972430feab6499bb55d6.zip
FreeBSD-src-cd9e845490f35e203d0b972430feab6499bb55d6.tar.gz
- Make OF_getetheraddr() honour the "local-mac-address?" system config
variable. If set to "true" OF_getetheraddr() will now return the unique MAC address stored in the "local-mac-address" property of the device's OFW node if present and the host address/system default MAC address if the node doesn't doesn't have such a property. If set to "false" the host address will be returned for all devices like before this change. This brings the behaviour of device drivers for NICs with OFW support/ FCode, i.e. dc(4) for on-board DM9102A on Sun machines, gem(4) and hme(4), regarding "local-mac-address?" in line with NetBSD and Solaris. The man pages of the respective drivers will be updated separately to reflect this change. - Remove OF_getetheraddr2() which was used as a stopgap in dc(4). Its functionality is now part of OF_getetheraddr().
Diffstat (limited to 'sys/pci/if_dc.c')
-rw-r--r--sys/pci/if_dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index cc550fa..4476f2e 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -2063,7 +2063,7 @@ dc_attach(device_t dev)
for (i = 0; i < ETHER_ADDR_LEN; i++)
if (eaddr[i] != 0x00)
break;
- if (i >= ETHER_ADDR_LEN && OF_getetheraddr2(dev, eaddr) == -1)
+ if (i >= ETHER_ADDR_LEN)
OF_getetheraddr(dev, eaddr);
#endif
break;
OpenPOWER on IntegriCloud