[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 3/5] linux-user: Add support the SIOC<G|S>IFP

From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH v4 3/5] linux-user: Add support the SIOC<G|S>IFPFLAGS ioctls for all targets
Date: Mon, 13 May 2019 13:46:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 03/05/2019 19:50, Aleksandar Markovic wrote:
From: Neng Chen <address@hidden>

Add support for getting and setting extended private flags of a
network device via SIOCSIFPFLAGS and SIOCGIFPFLAGS ioctls.

The ioctl numeric values are platform-independent and determined by
the file include/uapi/linux/sockios.h in Linux kernel source code:

   #define SIOCSIFPFLAGS 0x8934
   #define SIOCGIFPFLAGS        0x8935

These ioctls get (or set) the field ifr_flags of type short in the
structure ifreq. Such functionality is achieved in QEMU by using
MK_STRUCT() and MK_PTR() macros with an appropriate argument, as
it was done for existing similar cases.

Signed-off-by: Neng Chen <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
Message-Id: <address@hidden>
  linux-user/ioctls.h       | 2 ++
  linux-user/syscall_defs.h | 2 ++
  2 files changed, 4 insertions(+)

Reviewed-by: Laurent Vivier <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]