From 70c8ada2ad0853db6aa10d64807f9b239d038891 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 24 Sep 2000 14:19:52 +0000 Subject: [PATCH] Add calls to ether_addmulti and ether_delmulti. This code looks a bit different than other drivers due to the way ti_setmulti manages the filters. Patch from Keijiro Ehara. --- sys/dev/pci/if_ti.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index 4b8989a0a049..054e8c31ea22 100644 --- a/sys/dev/pci/if_ti.c +++ b/sys/dev/pci/if_ti.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ti.c,v 1.9 2000/09/24 12:37:03 jdolecek Exp $ */ +/* $NetBSD: if_ti.c,v 1.10 2000/09/24 14:19:52 martin Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2567,6 +2567,10 @@ static int ti_ioctl(ifp, command, data) break; case SIOCADDMULTI: case SIOCDELMULTI: + if (command == SIOCADDMULTI) + ether_addmulti(ifr, &sc->ethercom); + else + ether_delmulti(ifr, &sc->ethercom); if (ifp->if_flags & IFF_RUNNING) { ti_setmulti(sc); error = 0;