diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-12-08 04:39:10 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-12-08 04:39:10 +0000 |
commit | e3c76bf237ed692dbf574a3cd31fbed3044efd84 (patch) | |
tree | 52a2b78b2a2c56e19879a5b5a1e8fd266a1d3ebb /sys/dev/ic | |
parent | 3af01c3a97d0973d5eafc28299d86384ca229fa2 (diff) |
use htole32() on the data going into the setup frame for the dc_setfilt_21143() case at least.
XXX I'm looking at the other filter setups and they appear to need work for BE too.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/dc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index ce2447d217d..967f25b9a86 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.41 2001/12/06 22:19:35 jason Exp $ */ +/* $OpenBSD: dc.c,v 1.42 2001/12/08 04:39:09 jason Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -968,13 +968,13 @@ void dc_setfilt_21143(sc) ETHER_FIRST_MULTI(step, ac, enm); while (enm != NULL) { h = dc_crc_le(sc, enm->enm_addrlo); - sp[h >> 4] |= 1 << (h & 0xF); + sp[h >> 4] |= htole32(1 << (h & 0xF)); ETHER_NEXT_MULTI(step, enm); } if (ifp->if_flags & IFF_BROADCAST) { h = dc_crc_le(sc, (caddr_t)ðerbroadcastaddr); - sp[h >> 4] |= 1 << (h & 0xF); + sp[h >> 4] |= htole32(1 << (h & 0xF)); } /* Set our MAC address */ |