summaryrefslogtreecommitdiffstats
path: root/sys/dev/hme
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2004-06-10 00:06:04 +0000
committermarius <marius@FreeBSD.org>2004-06-10 00:06:04 +0000
commita8a74bf84ea6841e22f60c59f26166f4f9d1470e (patch)
tree3237814a884cd04e8e29444d0c49dc9c3033b119 /sys/dev/hme
parentbfeac9f9f9688ca640857e10822d01721474591c (diff)
downloadFreeBSD-src-a8a74bf84ea6841e22f60c59f26166f4f9d1470e.zip
FreeBSD-src-a8a74bf84ea6841e22f60c59f26166f4f9d1470e.tar.gz
- Add a LLADDR() forgotten in the conversion to ether_crc32_le().
- Remove a variable no longer used after the conversion. - While here, save on another one no longer really necessary after the conversion.
Diffstat (limited to 'sys/dev/hme')
-rw-r--r--sys/dev/hme/if_hme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/hme/if_hme.c b/sys/dev/hme/if_hme.c
index ccf9fae..0eda862 100644
--- a/sys/dev/hme/if_hme.c
+++ b/sys/dev/hme/if_hme.c
@@ -1404,11 +1404,9 @@ hme_setladrf(struct hme_softc *sc, int reenable)
{
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
struct ifmultiaddr *inm;
- struct sockaddr_dl *sdl;
u_int32_t crc;
u_int32_t hash[4];
u_int32_t macc;
- int len;
/* Clear hash table */
hash[3] = hash[2] = hash[1] = hash[0] = 0;
@@ -1457,8 +1455,8 @@ hme_setladrf(struct hme_softc *sc, int reenable)
TAILQ_FOREACH(inm, &sc->sc_arpcom.ac_if.if_multiaddrs, ifma_link) {
if (inm->ifma_addr->sa_family != AF_LINK)
continue;
- sdl = (struct sockaddr_dl *)inm->ifma_addr;
- crc = ether_crc32_le(sdl, ETHER_ADDR_LEN);
+ crc = ether_crc32_le(LLADDR((struct sockaddr_dl *)
+ inm->ifma_addr), ETHER_ADDR_LEN);
/* Just want the 6 most significant bits. */
crc >>= 26;
OpenPOWER on IntegriCloud