From e3c76bf237ed692dbf574a3cd31fbed3044efd84 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Sat, 8 Dec 2001 04:39:10 +0000 Subject: 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. --- sys/dev/ic/dc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic') 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 */ -- cgit v1.2.3