summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-09-19 06:14:25 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-09-19 06:14:25 +0000
commit5de1f43c47dbfb088a1d70fd4660545a29eb9709 (patch)
tree19df71c203032f1730d4fb6d8ef0e0c2247b112b /sys/dev/isa
parent2c642743910ce2a87ac181051b8b02e7110b8423 (diff)
remove the SIOCGIFADDR ioctl handler and return ENOTTY instead of EINVAL
upon error in ex_ioctl(). ok dlg@
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/if_ex.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c
index 22cc9a4773d..7f1b5801b22 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.21 2007/09/19 05:29:47 brad Exp $ */
+/* $OpenBSD: if_ex.c,v 1.22 2007/09/19 06:14:24 brad Exp $ */
/*
* Copyright (c) 1997, Donald A. Schmidt
* Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es)
@@ -766,16 +766,6 @@ ex_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
}
break;
- case SIOCGIFADDR:
- {
- struct sockaddr *sa;
-
- DODEBUG(Start_End, printf("SIOCGIFADDR"););
- sa = (struct sockaddr *) &ifr->ifr_data;
- bcopy((caddr_t) sc->arpcom.ac_enaddr, (caddr_t) sa->sa_data,
- ETHER_ADDR_LEN);
- }
- break;
case SIOCSIFFLAGS:
DODEBUG(Start_End, printf("SIOCSIFFLAGS"););
if ((ifp->if_flags & IFF_UP) == 0 && ifp->if_flags & IFF_RUNNING) {
@@ -802,7 +792,7 @@ ex_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
default:
DODEBUG(Start_End, printf("unknown"););
- error = EINVAL;
+ error = ENOTTY;
}
splx(s);