All of lore.kernel.org
 help / color / mirror / Atom feed
From: riku.voipio@linaro.org
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Anthony Liguori <aliguori@amazon.com>,
	Paul Burton <paul@archlinuxmips.org>
Subject: [Qemu-devel] [PULL v2 13/13] linux-user: support the SIOCGIFINDEX ioctl
Date: Sun, 29 Jun 2014 15:14:53 +0300	[thread overview]
Message-ID: <f63eb01ac7a5b4437d5589ad4343527534bf9d0b.1404041926.git.riku.voipio@linaro.org> (raw)
In-Reply-To: <cover.1404041926.git.riku.voipio@linaro.org>

From: Paul Burton <paul@archlinuxmips.org>

Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target
programs.

Signed-off-by: Paul Burton <paul@archlinuxmips.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 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 f278d3e..07a00da 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 4adfd3a..8563027 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.rc2

  parent reply	other threads:[~2014-06-29 12:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-29 12:14 [Qemu-devel] [PULL v2 00/13] linux-user changes for 2.1 riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 01/13] Add support for MAP_NORESERVE mmap flag riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 02/13] linux-user: added fake open() for /proc/self/cmdline riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 03/13] linux-user: translate the result of getsockopt SO_TYPE riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 04/13] linux-user: support SO_ACCEPTCONN getsockopt option riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 05/13] linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 06/13] linux-user: support SO_PASSSEC setsockopt option riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 07/13] linux-user: allow NULL arguments to mount riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 08/13] linux-user: support strace of epoll_create1 riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 09/13] linux-user: fix struct target_epoll_event layout for MIPS riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 10/13] linux-user: respect timezone for settimeofday riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 11/13] linux-user: allow NULL tv argument " riku.voipio
2014-06-29 12:14 ` [Qemu-devel] [PULL v2 12/13] linux-user: support the KDSIGACCEPT ioctl riku.voipio
2014-06-29 12:14 ` riku.voipio [this message]
2014-06-29 17:09 ` [Qemu-devel] [PULL v2 00/13] linux-user changes for 2.1 Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f63eb01ac7a5b4437d5589ad4343527534bf9d0b.1404041926.git.riku.voipio@linaro.org \
    --to=riku.voipio@linaro.org \
    --cc=aliguori@amazon.com \
    --cc=paul@archlinuxmips.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.