summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-03-21 17:53:16 +0000
committermdodd <mdodd@FreeBSD.org>2003-03-21 17:53:16 +0000
commitcda1ad1e064fd4783b1518baa707b19bd947e746 (patch)
treec9d7c27b0ae3e258aa728bc72628c7cd24b17f63 /sys/pci
parent2ead165b2523224693a1fe5664761073185728e2 (diff)
downloadFreeBSD-src-cda1ad1e064fd4783b1518baa707b19bd947e746.zip
FreeBSD-src-cda1ad1e064fd4783b1518baa707b19bd947e746.tar.gz
- Use if_broadcastaddr from struct ifnet rather than relying on
extern 'etherbroadcastaddr'. - Make 'etherbroadcastaddr' static. Reviewed by: imp
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_dc.c4
-rw-r--r--sys/pci/if_de.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index 1570ea4..1a73dc9 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -1176,7 +1176,7 @@ dc_setfilt_21143(sc)
}
if (ifp->if_flags & IFF_BROADCAST) {
- h = dc_crc_le(sc, (caddr_t)&etherbroadcastaddr);
+ h = dc_crc_le(sc, (caddr_t)ifp->if_broadcastaddr);
sp[h >> 4] |= 1 << (h & 0xF);
}
@@ -1372,7 +1372,7 @@ dc_setfilt_xircom(sc)
}
if (ifp->if_flags & IFF_BROADCAST) {
- h = dc_crc_le(sc, (caddr_t)&etherbroadcastaddr);
+ h = dc_crc_le(sc, (caddr_t)ifp->if_broadcastaddr);
sp[h >> 4] |= 1 << (h & 0xF);
}
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c
index d186586..44de080 100644
--- a/sys/pci/if_de.c
+++ b/sys/pci/if_de.c
@@ -3058,7 +3058,7 @@ tulip_addr_filter(
* receiving every multicast.
*/
if ((sc->tulip_flags & TULIP_ALLMULTI) == 0) {
- hash = tulip_mchash(etherbroadcastaddr);
+ hash = tulip_mchash(sc->tulip_if.if_broadcastaddr);
#if BYTE_ORDER == BIG_ENDIAN
sp[hash >> 4] |= bswap32(1 << (hash & 0xF));
#else
OpenPOWER on IntegriCloud