summaryrefslogtreecommitdiff
path: root/sys/dev/ic/lemac.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-10-30 02:30:49 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-10-30 02:30:49 +0000
commit0ed7ebd5e0e5cd517e7a84a8e9a3c389270e0b21 (patch)
tree5b488abc56365997671a4022abd033bfd4ed4fe8 /sys/dev/ic/lemac.c
parent5f0092a3abe428e8ad520ade4b402c18d0b75030 (diff)
array for multicast filter intialization mismatches. millert ok
Diffstat (limited to 'sys/dev/ic/lemac.c')
-rw-r--r--sys/dev/ic/lemac.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/lemac.c b/sys/dev/ic/lemac.c
index 1c50e0b28bf..d2ccb0ed40a 100644
--- a/sys/dev/ic/lemac.c
+++ b/sys/dev/ic/lemac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lemac.c,v 1.4 2003/10/21 18:58:49 jmc Exp $ */
+/* $OpenBSD: lemac.c,v 1.5 2003/10/30 02:30:48 itojun Exp $ */
/* $NetBSD: lemac.c,v 1.20 2001/06/13 10:46:02 wiz Exp $ */
/*-
@@ -99,7 +99,11 @@ struct cfdriver lc_cd = {
NULL, "lc", DV_IFNET
};
-static const u_int16_t lemac_allmulti_mctbl[16] = {
+static const u_int16_t lemac_allmulti_mctbl[LEMAC_MCTBL_SIZE/sizeof(u_int16_t)] = {
+ 0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
+ 0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
+ 0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
+ 0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,