[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 16/16] linux-user: support the SIOCGIFINDEX ioctl
From: |
Paul Burton |
Subject: |
[Qemu-devel] [PATCH 16/16] linux-user: support the SIOCGIFINDEX ioctl |
Date: |
Sun, 15 Jun 2014 17:18:33 +0100 |
Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target
programs.
Signed-off-by: Paul Burton <address@hidden>
---
linux-user/ioctls.h | 1 +
linux-user/syscall_defs.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index cd21e64..20551a8 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -118,6 +118,7 @@
IOCTL(SIOCSIFMEM, IOC_W, MK_PTR(MK_STRUCT(STRUCT_ptr_ifreq)))
IOCTL(SIOCADDMULTI, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq)))
IOCTL(SIOCDELMULTI, IOC_W, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq)))
+ IOCTL(SIOCGIFINDEX, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq)))
IOCTL(SIOCSIFLINK, 0, TYPE_NULL)
IOCTL_SPECIAL(SIOCGIFCONF, IOC_W | IOC_R, do_ioctl_ifconf,
MK_PTR(MK_STRUCT(STRUCT_ifconf)))
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 4d35d54..9c7499c 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -865,6 +865,7 @@ struct target_pollfd {
#define TARGET_SIOCSIFSLAVE 0x8930
#define TARGET_SIOCADDMULTI 0x8931 /* Multicast address lists
*/
#define TARGET_SIOCDELMULTI 0x8932
+#define TARGET_SIOCGIFINDEX 0x8933
/* Bridging control calls */
#define TARGET_SIOCGIFBR 0x8940 /* Bridging support
*/
--
2.0.0
- Re: [Qemu-devel] [PATCH 07/16] linux-user: fix struct target_epoll_event layout for MIPS, (continued)
- [Qemu-devel] [PATCH 08/16] linux-user: respect timezone for settimeofday, Paul Burton, 2014/06/15
- [Qemu-devel] [PATCH 09/16] linux-user: allow NULL tv argument for settimeofday, Paul Burton, 2014/06/15
- [Qemu-devel] [PATCH 10/16] linux-user: support timerfd_{create, gettime, settime} syscalls, Paul Burton, 2014/06/15
- [Qemu-devel] [PATCH 11/16] linux-user: support ioprio_{get, set} syscalls, Paul Burton, 2014/06/15
- [Qemu-devel] [PATCH 12/16] linux-user: support {name_to, open_by}_handle_at syscalls, Paul Burton, 2014/06/15
- [Qemu-devel] [PATCH 13/16] linux-user: support the setns syscall, Paul Burton, 2014/06/15
- [Qemu-devel] [PATCH 15/16] linux-user: support the KDSIGACCEPT ioctl, Paul Burton, 2014/06/15
- [Qemu-devel] [PATCH 14/16] linux-user: support the unshare syscall, Paul Burton, 2014/06/15
- [Qemu-devel] [PATCH 16/16] linux-user: support the SIOCGIFINDEX ioctl,
Paul Burton <=
- Re: [Qemu-devel] [PATCH 00/16] linux-user fixes & improvements, Riku Voipio, 2014/06/17
- Re: [Qemu-devel] [PATCH 00/16] linux-user fixes & improvements, Riku Voipio, 2014/06/21