summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-09-19 06:44:58 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-09-19 06:44:58 +0000
commit4282e223e1e7e4c9885a517c3d61b00cc04ffed2 (patch)
treeeb87b02abc26f5a673f68bf81eb85818e64ad19d
parentdeeee6d2adefc8a72deaa604ac2a6a213d0162d4 (diff)
sprinkle a few tabs on ex_ioctl() to make things easier on the eyes.
ok dlg@
-rw-r--r--sys/dev/isa/if_ex.c95
1 files changed, 47 insertions, 48 deletions
diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c
index 77621611327..bb03d5c27f7 100644
--- a/sys/dev/isa/if_ex.c
+++ b/sys/dev/isa/if_ex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ex.c,v 1.23 2007/09/19 06:28:38 brad Exp $ */
+/* $OpenBSD: if_ex.c,v 1.24 2007/09/19 06:44:57 brad Exp $ */
/*
* Copyright (c) 1997, Donald A. Schmidt
* Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es)
@@ -755,55 +755,54 @@ ex_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
}
switch(cmd) {
- case SIOCSIFADDR:
- DODEBUG(Start_End, printf("SIOCSIFADDR"););
- ifp->if_flags |= IFF_UP;
-
- switch(ifa->ifa_addr->sa_family) {
+ case SIOCSIFADDR:
+ DODEBUG(Start_End, printf("SIOCSIFADDR"););
+ ifp->if_flags |= IFF_UP;
+
+ switch(ifa->ifa_addr->sa_family) {
#ifdef INET
- case AF_INET:
- ex_init(sc);
- arp_ifinit((struct arpcom *) ifp, ifa);
- break;
+ case AF_INET:
+ ex_init(sc);
+ arp_ifinit((struct arpcom *) ifp, ifa);
+ break;
#endif
- default:
- ex_init(sc);
- break;
- }
- break;
- case SIOCSIFFLAGS:
- DODEBUG(Start_End, printf("SIOCSIFFLAGS"););
- if ((ifp->if_flags & IFF_UP) == 0 && ifp->if_flags & IFF_RUNNING) {
- ifp->if_flags &= ~IFF_RUNNING;
- ex_stop(sc);
- }
- else
- ex_init(sc);
- break;
- case SIOCSIFMTU:
- DODEBUG(Start_End, printf("SIOCSIFMTU"););
- if (ifr->ifr_mtu > ETHERMTU || ifr->ifr_mtu < ETHERMIN) {
- error = EINVAL;
- } else if (ifp->if_mtu != ifr->ifr_mtu) {
- ifp->if_mtu = ifr->ifr_mtu;
- }
- break;
- case SIOCADDMULTI:
- DODEBUG(Start_End, printf("SIOCADDMULTI"););
- case SIOCDELMULTI:
- DODEBUG(Start_End, printf("SIOCDELMULTI"););
- /* XXX Support not done yet. */
- error = EINVAL;
- break;
- default:
- DODEBUG(Start_End, printf("unknown"););
- error = ENOTTY;
- }
-
- splx(s);
-
- DODEBUG(Start_End, printf("\nex_ioctl: finish\n"););
- return(error);
+ default:
+ ex_init(sc);
+ break;
+ }
+ break;
+ case SIOCSIFFLAGS:
+ DODEBUG(Start_End, printf("SIOCSIFFLAGS"););
+ if ((ifp->if_flags & IFF_UP) == 0 && ifp->if_flags & IFF_RUNNING) {
+ ifp->if_flags &= ~IFF_RUNNING;
+ ex_stop(sc);
+ } else
+ ex_init(sc);
+ break;
+ case SIOCSIFMTU:
+ DODEBUG(Start_End, printf("SIOCSIFMTU"););
+ if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ETHERMTU)
+ error = EINVAL;
+ else if (ifp->if_mtu != ifr->ifr_mtu)
+ ifp->if_mtu = ifr->ifr_mtu;
+ break;
+ case SIOCADDMULTI:
+ DODEBUG(Start_End, printf("SIOCADDMULTI"););
+ case SIOCDELMULTI:
+ DODEBUG(Start_End, printf("SIOCDELMULTI"););
+ /* XXX Support not done yet. */
+ error = EINVAL;
+ break;
+ default:
+ DODEBUG(Start_End, printf("unknown"););
+ error = ENOTTY;
+ break;
+ }
+
+ splx(s);
+
+ DODEBUG(Start_End, printf("\nex_ioctl: finish\n"););
+ return(error);
}
void