All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] The ioctl(SIOCGIFNAME) call requires a struct ifreq.
@ 2019-04-23 22:20 ` Erik Kline via Qemu-devel
  0 siblings, 0 replies; 9+ messages in thread
From: Erik Kline @ 2019-04-23 22:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: ek, Erik Kline

Signed-off-by: Erik Kline <ek@google.com>
Buglink: https://bugs.launchpad.net/qemu/+bug/1814352
---
 linux-user/ioctls.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index ae8951625f..37501f575c 100644
--- 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)))
-- 
2.21.0.593.g511ec345e18-goog

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-05-09  9:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-23 22:20 [Qemu-devel] [PATCH] The ioctl(SIOCGIFNAME) call requires a struct ifreq Erik Kline
2019-04-23 22:20 ` Erik Kline via Qemu-devel
2019-04-23 22:31 ` no-reply
2019-04-23 22:31   ` no-reply
2019-04-24  9:09 ` Peter Maydell
2019-04-24  9:09   ` Peter Maydell
2019-05-08 22:54   ` Erik Kline
2019-05-09  8:55     ` Peter Maydell
2019-05-09  9:03       ` Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.