diff options
author | Thomas Nordin <nordin@cvs.openbsd.org> | 2003-11-25 21:43:43 +0000 |
---|---|---|
committer | Thomas Nordin <nordin@cvs.openbsd.org> | 2003-11-25 21:43:43 +0000 |
commit | 0bbe9e0841286da9188e963c05513502beec8cf3 (patch) | |
tree | d66998855c5b96812a0c81911438e97efae85631 /sys/compat/linux/linux_socket.c | |
parent | a42d1790787d306d0e929cdcd715fc332da0e5a5 (diff) |
Make SIOCGIFHWADDR work. ok mickey@
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
-rw-r--r-- | sys/compat/linux/linux_socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 0d458e32a01..bceffab5d99 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.c,v 1.30 2003/07/24 01:31:36 tedu Exp $ */ +/* $OpenBSD: linux_socket.c,v 1.31 2003/11/25 21:43:42 nordin Exp $ */ /* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */ /* @@ -1408,7 +1408,7 @@ linux_ioctl_socket(p, v, retval) SCARG(&ia, com) = SIOCDELMULTI; break; case LINUX_SIOCGIFHWADDR: { - struct linux_ifreq *ifr = (struct linux_ifreq *)SCARG(&ia, data); + struct linux_ifreq *ifr = (struct linux_ifreq *)SCARG(uap, data); struct sockaddr_dl *sdl; struct ifnet *ifp; struct ifaddr *ifa; @@ -1435,6 +1435,7 @@ linux_ioctl_socket(p, v, retval) } } error = ENOENT; + break; } default: error = EINVAL; |