projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2acfb5
)
The ioctl(SIOCGIFNAME) call requires a struct ifreq.
author
Erik Kline
<ek@google.com>
Tue, 23 Apr 2019 22:20:05 +0000
(15:20 -0700)
committer
Laurent Vivier
<laurent@vivier.eu>
Fri, 10 May 2019 10:44:00 +0000
(12:44 +0200)
Signed-off-by: Erik Kline <ek@google.com>
Buglink:
https://bugs.launchpad.net/qemu/+bug/1814352
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <
20190423222005
.246981-1-ek@google.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/ioctls.h
patch
|
blob
|
history
diff --git
a/linux-user/ioctls.h
b/linux-user/ioctls.h
index ae8951625ffeb4cb57132f9feefe6d40b6e1facc..37501f575cddd3c09511b02b1b571b42ecdba7af 100644
(file)
--- a/
linux-user/ioctls.h
+++ b/
linux-user/ioctls.h
@@
-178,7
+178,7
@@
#endif /* CONFIG_USBFS */
IOCTL(SIOCATMARK, IOC_R, MK_PTR(TYPE_INT))
- IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(
TYPE_INT
))
+ IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(
MK_STRUCT(STRUCT_int_ifreq)
))
IOCTL(SIOCGIFFLAGS, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_short_ifreq)))
IOCTL(SIOCSIFFLAGS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_short_ifreq)))
IOCTL(SIOCGIFADDR, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq)))