diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2000-02-15 03:54:30 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2000-02-15 03:54:30 +0000 |
commit | 89fde580aa363ba6c66f2777a003495f711bbc5e (patch) | |
tree | 7df5aee3f2d14e5e6df4854b2fa9b38dc425bb48 /sys/dev | |
parent | 53fdedfb0b6a3815faa513c0a77ceb9e74e2d0b5 (diff) |
undo previous, temporarily
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_ti.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index f1acbf7afa7..96adfabe14c 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.10 2000/02/15 02:28:15 jason Exp $ */ +/* $OpenBSD: if_ti.c,v 1.11 2000/02/15 03:54:29 jason Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2292,8 +2292,8 @@ int ti_ioctl(ifp, command, data) caddr_t data; { struct ti_softc *sc = ifp->if_softc; - struct ifreq *ifr = (struct ifreq *) data; - struct ifaddr *ifa = (struct ifaddr *) data; + struct ifreq *ifr = (struct ifreq *)data; + struct ifaddr *ifa = (struct ifaddr *)data; int s, error = 0; struct ti_cmd_desc cmd; @@ -2351,15 +2351,7 @@ int ti_ioctl(ifp, command, data) break; case SIOCADDMULTI: case SIOCDELMULTI: - error = (command == SIOCADDMULTI) ? - ether_addmulti(ifr, &sc->arpcom) : - ether_delmulti(ifr, &sc->arpcom); - - if (error == ENETRESET) { - /* - * Multicast list has changed; set the hardware - * filter accordingly. - */ + if (ifp->if_flags & IFF_RUNNING) { ti_setmulti(sc); error = 0; } |