diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-04-17 13:41:52 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-04-17 13:41:52 +0000 |
commit | dcda2fe9f1aad29ca2e5b02846a6a7aa9a69601e (patch) | |
tree | e4c2ca619211a26f6a0c4b2c343661cddeed275d /sys/dev/usb/if_ral.c | |
parent | 81516c32df87d3df8c8e476727323fb1213b5bc9 (diff) |
don't disassociate on SIOCSIFADDR if the interface is already up and running.
Diffstat (limited to 'sys/dev/usb/if_ral.c')
-rw-r--r-- | sys/dev/usb/if_ral.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index 8534f743de0..299f2dfc3ab 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.27 2005/04/16 08:27:41 damien Exp $ */ +/* $OpenBSD: if_ral.c,v 1.28 2005/04/17 13:41:51 damien Exp $ */ /*- * Copyright (c) 2005 @@ -1398,18 +1398,11 @@ ural_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCSIFADDR: ifa = (struct ifaddr *)data; ifp->if_flags |= IFF_UP; - switch (ifa->ifa_addr->sa_family) { #ifdef INET - case AF_INET: + if (ifa->ifa_addr->sa_family == AF_INET) arp_ifinit(&ic->ic_ac, ifa); - ural_init(ifp); - break; #endif - default: - ural_init(ifp); - } - break; - + /* FALLTHROUGH */ case SIOCSIFFLAGS: if (ifp->if_flags & IFF_UP) { if (ifp->if_flags & IFF_RUNNING) |