Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci When setting/changing an address, no need to cal...
details: https://anonhg.NetBSD.org/src/rev/553b0614ad43
branches: trunk
changeset: 511809:553b0614ad43
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed Jun 27 16:47:33 2001 +0000
description:
When setting/changing an address, no need to call ti_init() if the interface
is already up.
Especially this allow netatalk to start properly on a ti interface.
diffstat:
sys/dev/pci/if_ti.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r dfd6febdc309 -r 553b0614ad43 sys/dev/pci/if_ti.c
--- a/sys/dev/pci/if_ti.c Wed Jun 27 16:41:00 2001 +0000
+++ b/sys/dev/pci/if_ti.c Wed Jun 27 16:47:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ti.c,v 1.25 2001/06/12 15:17:25 wiz Exp $ */
+/* $NetBSD: if_ti.c,v 1.26 2001/06/27 16:47:33 bouyer Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -2599,14 +2599,17 @@
struct ifaddr *ifa = (struct ifaddr *) data;
struct ti_softc *sc = ifp->if_softc;
+ if ((ifp->if_flags & IFF_UP) == 0) {
+ ifp->if_flags |= IFF_UP;
+ ti_init(sc);
+ }
+
switch (cmd) {
case SIOCSIFADDR:
- ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
#ifdef INET
case AF_INET:
- ti_init(sc);
arp_ifinit(ifp, ifa);
break;
#endif
@@ -2621,13 +2624,10 @@
else
bcopy(ina->x_host.c_host, LLADDR(ifp->if_sadl),
ifp->if_addrlen);
- /* Set new address. */
- ti_init(sc);
break;
}
#endif
default:
- ti_init(sc);
break;
}
break;
Home |
Main Index |
Thread Index |
Old Index