summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-11-07 21:03:02 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-11-07 21:03:02 +0000
commitffe8bf58e5d6a21c7d922810439c1f9f7e3c9a5e (patch)
tree6bd6fca4502614dea7c08ec60d26ee70a2877446 /sys/dev/usb
parent528041a05bc8cc6f74799089350388e01308153d (diff)
Fix multicast filter programming; from FreeBSD.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_aue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index d21eb0f2a30..82c3847421e 100644
--- a/sys/dev/usb/if_aue.c
+++ b/sys/dev/usb/if_aue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aue.c,v 1.9 2000/10/13 04:42:10 aaron Exp $ */
+/* $OpenBSD: if_aue.c,v 1.10 2000/11/07 21:03:01 aaron Exp $ */
/* $NetBSD: if_aue.c,v 1.38 2000/04/04 20:16:19 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -657,7 +657,7 @@ aue_setmulti(sc)
if (ifma->ifma_addr->sa_family != AF_LINK)
continue;
h = aue_crc(LLADDR((struct sockaddr_dl *)ifma->ifma_addr));
- AUE_SETBIT(sc, AUE_MAR + (h >> 3), 1 << (h & 0xF));
+ AUE_SETBIT(sc, AUE_MAR + (h >> 3), 1 << (h & 0x7));
}
#elif defined(__NetBSD__) || defined(__OpenBSD__)
#if defined(__NetBSD__)
@@ -675,7 +675,7 @@ aue_setmulti(sc)
}
#endif
h = aue_crc(enm->enm_addrlo);
- AUE_SETBIT(sc, AUE_MAR + (h >> 3), 1 << (h & 0xF));
+ AUE_SETBIT(sc, AUE_MAR + (h >> 3), 1 << (h & 0x7));
ETHER_NEXT_MULTI(step, enm);
}
#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */