aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ray
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-03 16:29:10 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-03 16:29:10 +0000
commit78d82c8c59b960040416b7ec2ad27b20ffffdd45 (patch)
tree065f89827bda76ff91798ac9e6d716414ffa46a8 /sys/dev/ray
parent22f29826756b763aca9e89b47514fc327289cd8e (diff)
Notes
Diffstat (limited to 'sys/dev/ray')
-rw-r--r--sys/dev/ray/if_ray.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c
index f00d7406eb797..2563daf8298aa 100644
--- a/sys/dev/ray/if_ray.c
+++ b/sys/dev/ray/if_ray.c
@@ -2421,8 +2421,7 @@ ray_mcast(struct ray_softc *sc, struct ray_comq_entry *com)
* The multicast list is only 16 items long so use promiscuous
* mode and don't bother updating the multicast list.
*/
- for (ifma = ifp->if_multiaddrs.lh_first, count = 0; ifma != NULL;
- ifma = ifma->ifma_link.le_next, count++)
+ LIST_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link)
if (count == 0) {
ray_com_runq_done(sc);
return;
@@ -2440,8 +2439,7 @@ ray_mcast(struct ray_softc *sc, struct ray_comq_entry *com)
SRAM_WRITE_FIELD_1(sc, com->c_ccs,
ray_cmd_update_mcast, c_nmcast, count);
bufp = RAY_HOST_TO_ECF_BASE;
- for (ifma = ifp->if_multiaddrs.lh_first; ifma != NULL;
- ifma = ifma->ifma_link.le_next) {
+ LIST_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
SRAM_WRITE_REGION(
sc,
bufp,