dp83932.c (71962) | dp83932.c (72084) |
---|---|
1/* $FreeBSD: head/sys/dev/snc/dp83932.c 71962 2001-02-03 16:29:10Z phk $ */ | 1/* $FreeBSD: head/sys/dev/snc/dp83932.c 72084 2001-02-06 10:12:15Z phk $ */ |
2/* $NecBSD: dp83932.c,v 1.5 1999/07/29 05:08:44 kmatsuda Exp $ */ 3/* $NetBSD: if_snc.c,v 1.18 1998/04/25 21:27:40 scottr Exp $ */ 4 5/* 6 * Copyright (c) 1997, 1998, 1999 7 * Kouichi Matsuda. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 663 unchanged lines hidden (view full) --- 673 /* Always load our own address first. */ 674 camentry (sc, mcount, sc->sc_ethercom.ac_enaddr); 675 mcount++; 676 677 /* Assume we won't need allmulti bit. */ 678 ifp->if_flags &= ~IFF_ALLMULTI; 679 680 /* Loop through multicast addresses */ | 2/* $NecBSD: dp83932.c,v 1.5 1999/07/29 05:08:44 kmatsuda Exp $ */ 3/* $NetBSD: if_snc.c,v 1.18 1998/04/25 21:27:40 scottr Exp $ */ 4 5/* 6 * Copyright (c) 1997, 1998, 1999 7 * Kouichi Matsuda. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 663 unchanged lines hidden (view full) --- 673 /* Always load our own address first. */ 674 camentry (sc, mcount, sc->sc_ethercom.ac_enaddr); 675 mcount++; 676 677 /* Assume we won't need allmulti bit. */ 678 ifp->if_flags &= ~IFF_ALLMULTI; 679 680 /* Loop through multicast addresses */ |
681 LIST_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { | 681 TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { |
682 if (ifma->ifma_addr->sa_family != AF_LINK) 683 continue; 684 if (mcount == MAXCAM) { 685 ifp->if_flags |= IFF_ALLMULTI; 686 break; 687 } 688 689 /* program the CAM with the specified entry */ --- 532 unchanged lines hidden --- | 682 if (ifma->ifma_addr->sa_family != AF_LINK) 683 continue; 684 if (mcount == MAXCAM) { 685 ifp->if_flags |= IFF_ALLMULTI; 686 break; 687 } 688 689 /* program the CAM with the specified entry */ --- 532 unchanged lines hidden --- |