summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornordin <nordin@openbsd.org>2003-11-25 21:43:42 +0000
committernordin <nordin@openbsd.org>2003-11-25 21:43:42 +0000
commit243956a236197268d4db0b0c2445a298183d2283 (patch)
tree42de6f9bc741a5cb5801c3473239076f2e96f129
parentLet cxxfilt compile without any external binutils stuff. (diff)
downloadwireguard-openbsd-243956a236197268d4db0b0c2445a298183d2283.tar.xz
wireguard-openbsd-243956a236197268d4db0b0c2445a298183d2283.zip
Make SIOCGIFHWADDR work. ok mickey@
-rw-r--r--sys/compat/linux/linux_socket.c5
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;