From a3dd11a77823f80a82e36a95f59ab7c48fe883bf Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Wed, 14 Mar 2001 20:11:40 +0000 Subject: Follow openbsd model for multicast ioctl handling --- sys/dev/pci/if_ti.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index b97bfc3f05d..15b04c46fd0 100644 --- a/sys/dev/pci/if_ti.c +++ b/sys/dev/pci/if_ti.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ti.c,v 1.15 2001/02/20 19:39:43 mickey Exp $ */ +/* $OpenBSD: if_ti.c,v 1.16 2001/03/14 20:11:39 jason Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2404,8 +2404,13 @@ int ti_ioctl(ifp, command, data) break; case SIOCADDMULTI: case SIOCDELMULTI: - if (ifp->if_flags & IFF_RUNNING) { - ti_setmulti(sc); + error = (command == SIOCADDMULTI) ? + ether_addmulti(ifr, &sc->arpcom) : + ether_delmulti(ifr, &sc->arpcom); + + if (error == ENETRESET) { + if (ifp->if_flags & IFF_RUNNING) + ti_setmulti(sc); error = 0; } break; -- cgit v1.2.3